From: Jaganath Kanakkassery Date: Thu, 14 May 2015 07:28:08 +0000 (+0530) Subject: Bluetooth: Fix potential NULL dereference in RFCOMM bind callback X-Git-Tag: v3.2.84~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ccd61d9e112c13be97d614883a5ddc426233b7f;p=pandora-kernel.git Bluetooth: Fix potential NULL dereference in RFCOMM bind callback commit 951b6a0717db97ce420547222647bcc40bf1eacd upstream. addr can be NULL and it should not be dereferenced before NULL checking. Signed-off-by: Jaganath Kanakkassery Signed-off-by: Marcel Holtmann [bwh: Backported to 3.2: - There's no 'chan' variable - Keep using batostr() to log addresses - Adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed