diff options
author | Bernd Porr <mail@berndporr.me.uk> | 2013-12-11 20:06:15 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-18 01:10:40 +0400 |
commit | e56b1401056288a725d50942ef300dcbed5e519a (patch) | |
tree | 58e619e30e3fd508e975d72dffb732fc5e0bfa98 /drivers/vme | |
parent | b163970fa5b54c28445e503d18a3baca596f056e (diff) | |
download | linux-e56b1401056288a725d50942ef300dcbed5e519a.tar.xz |
staging: comedi: fix result of memdup_user for user chanlist
If the channel list is not set in userspace we get an error at
PTR_ERR(async->cmd.chanlist). However, do_become_nonbusy(dev, s) cleans
up this pointer which causes a kernel ooops. Setting the channel list in
async to NULL and checking this in do_become_nonbusy prevents the oops.
[Ian Abbott] Also do the same for the chanlist allocated in
do_cmdtest_ioctl().
Signed-off-by: Bernd Porr <mail@berndporr.me.uk>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/vme')
0 files changed, 0 insertions, 0 deletions