Bluetooth: Fix out of scope variable access in hci_sock_cmsg()
authorJohann Felix Soden <johfel@users.sourceforge.net>
Mon, 15 Feb 2010 21:23:48 +0000 (22:23 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 28 Feb 2010 08:47:30 +0000 (00:47 -0800)
commitf6e623a65cb301088bd04794043e82bfc996c512
treea21946f9190a137875071125c6125d5f8c14efbd
parent705e5711b61e9622b2d88850f38c219014aa0780
Bluetooth: Fix out of scope variable access in hci_sock_cmsg()

The pointer data can point to the variable ctv.
Access to data happens when ctv is already out of scope.

Signed-off-by: Johann Felix Soden <johfel@users.sourceforge.net>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_sock.c