aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorBernd Porr <mail@berndporr.me.uk>2013-12-11 16:06:15 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-01-29 05:06:18 -0800
commitaf7b2d49ef7b4171ef416b7ca2810834993afbca (patch)
tree45ab0a55f38d594b6f273cf09d8370593ef039be /lib/test-string_helpers.c
parent1b8c5f8b4b57c574f6cf2047e80e1565b2a07f09 (diff)
staging: comedi: fix result of memdup_user for user chanlist
commit e56b1401056288a725d50942ef300dcbed5e519a upstream. 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 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions