Staging: comedi: fix bug with invalid minor number usage.
authorFrank Mori Hess <fmhess@users.sourceforge.net>
Mon, 15 Dec 2008 13:48:47 +0000 (13:48 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:53:52 +0000 (14:53 -0700)
commit53b670a75bef4bf6484bbf6ca6a896c365676fd4
treea379b1ac4aab872cc41b4718ff0919aaf9785724
parenta3cb729ef4a192f04179f780122df78ef1ffe779
Staging: comedi: fix bug with invalid minor number usage.

Return error instead of segfaulting if user trys to run comedi_config on
a device file with and invalid minor number.

From: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: David Schleef <ds@schleef.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/comedi_fops.c