diff options
| author | H Hartley Sweeten <[email protected]> | 2014-04-17 10:07:51 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2014-04-22 10:21:30 -0700 |
| commit | 9b799edccbfb8c8973e8b55e8a0bfdc70c707f21 (patch) | |
| tree | a4c098d003b92ee1b2bcdd00ebcb560320a709bc /tools/perf/scripts/python | |
| parent | 6e1d1f336e2103b31f1cecb63bb791427af7b9ec (diff) | |
staging: comedi: hwdrv_apci3200: properly validata the ai cmd->start_arg
The async command 'arguments' should be trivially validated in Step 3 of
the (*do_cmdtest) not Step 2b. Move the validataion in this driver to the
proper place.
This driver supports two cmd->start_src values, TRIG_NOW and TRIG_EXT.
TRIG_NOW sources should always have an arg of 0. The arg for TRIG_EXT
sources is driver specific.
Properly validate the cmd->start_arg based on the cmd->start_src. Remove
the noise when the arg is invalid and modify the cmd->start_arg so that
a valid value is returned to the user.
Signed-off-by: H Hartley Sweeten <[email protected]>
Reviewed-by: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions