]> git.baikalelectronics.ru Git - kernel.git/commit
USB: g_printer: fix bug in unregistration
authorFabian Godehardt <fg@emlix.com>
Thu, 1 Sep 2011 12:15:46 +0000 (14:15 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 18 Sep 2011 08:33:06 +0000 (01:33 -0700)
commit4b4cce503ecc59cfc082184bba0aec935f360c6e
treeb1f76f9d2a83485a24896c11d3cbe30193636efe
parentc58c688fb285a698946912896a7d3c63d6803e7d
USB: g_printer: fix bug in unregistration

The allocated chardevice region range is only 1 device but on
unregister it currently tries to deregister 2.

Found this while doing a insmod/rmmod/insmod/rm... of the module
which seemed to eat major numbers.

Signed-off-by: Fabian Godehardt <fg@emlix.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/printer.c