]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: resizing usbmon binary interface buffer causes protection faults
authorSteven Robertson <steven@strobe.cc>
Wed, 21 Jul 2010 20:38:44 +0000 (16:38 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:19:41 +0000 (13:19 -0700)
commit1a9ee60e9ab43571686d1486f868ecd862cf8257
tree83c3494e35e115f9a30bd6c60c372d36c134c23a
parentba4719835c88aaa7b059e3fe2055adebf3608aa3
USB: resizing usbmon binary interface buffer causes protection faults

commit 33d973ad88ceb83ed1449592b7574b5b5bb33ac6 upstream.

Enlarging the buffer size via the MON_IOCT_RING_SIZE ioctl causes
general protection faults. It appears the culprit is an incorrect
argument to mon_free_buff: instead of passing the size of the current
buffer being freed, the size of the new buffer is passed.

Use the correct size argument to mon_free_buff when changing the size of
the buffer.

Signed-off-by: Steven Robertson <steven@strobe.cc>
Acked-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/mon/mon_bin.c