|
@@ -800,6 +800,7 @@ static int ioctl_event_ctl(struct switchtec_dev *stdev,
|
|
|
{
|
|
{
|
|
|
int ret;
|
|
int ret;
|
|
|
int nr_idxs;
|
|
int nr_idxs;
|
|
|
|
|
+ unsigned int event_flags;
|
|
|
struct switchtec_ioctl_event_ctl ctl;
|
|
struct switchtec_ioctl_event_ctl ctl;
|
|
|
|
|
|
|
|
if (copy_from_user(&ctl, uctl, sizeof(ctl)))
|
|
if (copy_from_user(&ctl, uctl, sizeof(ctl)))
|
|
@@ -821,7 +822,9 @@ static int ioctl_event_ctl(struct switchtec_dev *stdev,
|
|
|
else
|
|
else
|
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
|
|
+ event_flags = ctl.flags;
|
|
|
for (ctl.index = 0; ctl.index < nr_idxs; ctl.index++) {
|
|
for (ctl.index = 0; ctl.index < nr_idxs; ctl.index++) {
|
|
|
|
|
+ ctl.flags = event_flags;
|
|
|
ret = event_ctl(stdev, &ctl);
|
|
ret = event_ctl(stdev, &ctl);
|
|
|
if (ret < 0)
|
|
if (ret < 0)
|
|
|
return ret;
|
|
return ret;
|