]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Thu, 8 Dec 2011 19:17:48 +0000 (11:17 -0800)
commit053066ab18d97cc0e85bee716e7c6fc831b0e315
tree268f7c7be07145006d4dd348f01e3316a03cd24f
parent29111b46ffad145631305c280ba194ac372c0423
USB: g_printer: fix bug in unregistration

commit 8582d86143c690c68cc42f996def466a035bee34 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/printer.c