From: Szymon Janc Date: Mon, 28 Feb 2011 13:09:50 +0000 (+0100) Subject: Bluetooth: Fix possible NULL pointer dereference in cmd_complete X-Git-Tag: v2.6.39-rc1~468^2~88^2^2~48^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8020c16a6c9fc8d6a5217be8d005f2fc558f6ab5;p=pandora-kernel.git Bluetooth: Fix possible NULL pointer dereference in cmd_complete It is now possible to create command complete event without specific reply data by passing NULL as reply with len 0. Check pointer before calling memcpy to avoid undefined behaviour. Signed-off-by: Szymon Janc Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed