From: H Hartley Sweeten Date: Mon, 10 Aug 2015 20:14:01 +0000 (-0700) Subject: staging: comedi: comedi_fops: remove BUG_ON() in comedi_free_subdevice_minor() X-Git-Tag: omap-for-v4.3/fixes-merge-window~44^2~104 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5104a8988723b405c9e033b7e57267ebdd387d4d;p=pandora-kernel.git staging: comedi: comedi_fops: remove BUG_ON() in comedi_free_subdevice_minor() Drivers should not crash the kernel. This function is only called by comedi_device_detach_cleanup() and the s->minor will always be valid or the device wouldn't have attached in the first place. Leave the checks for safety in accessing the comedi_subdevice_minor_table array but remove the BUG_ON() calls. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed