From: Szymon Janc Date: Fri, 25 Feb 2011 18:05:49 +0000 (+0100) Subject: Bluetooth: Validate data size before accessing mgmt commands X-Git-Tag: v2.6.39-rc1~468^2~88^2^2~48^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdce7bafb786701004b2055e15d6ff4b3be678f3;p=pandora-kernel.git Bluetooth: Validate data size before accessing mgmt commands 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 Acked-by: Johan Hedberg Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed