Bluetooth: Validate data size before accessing mgmt commands
authorSzymon Janc <szymon.janc@tieto.com>
Fri, 25 Feb 2011 18:05:49 +0000 (19:05 +0100)
committerGustavo F. Padovan <padovan@profusion.mobi>
Sun, 27 Feb 2011 19:57:07 +0000 (16:57 -0300)
Crafted (too small) data buffer could result in reading data outside of buffer.
Validate buffer size and return EINVAL if size is wrong.

Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Acked-by: Johan Hedberg <johan.hedberg@nokia.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/mgmt.c

Simple merge