]> git.karo-electronics.de Git - linux-beck.git/commit
Staging: bcm: Fix information leak in IOCTL_BCM_GET_DRIVER_VERSION
authorKevin McKinney <klmckinney1@gmail.com>
Thu, 15 Dec 2011 03:44:33 +0000 (22:44 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Dec 2011 21:32:45 +0000 (13:32 -0800)
commitb72a7c859efc9e0cf13600b30a555457a08dd86f
tree3d284a1e03b1725c5c0f1f6d19a67d9a9f188d19
parentd1840eda7add1d0fdee5cf7ad2ac7ad0f656eecb
Staging: bcm: Fix information leak in IOCTL_BCM_GET_DRIVER_VERSION

This ioctl, IOCTL_BCM_GET_DRIVER_VERSION, is
responsible for sending the driver version
to userspace. However, the requested size stored
in IoBuffer.OutputLength may be incorrect.
Therefore, we altered the code to send the
exact length of the version, plus one for the
null character.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/bcm/Bcmchar.c