From: David S. Miller Date: Mon, 25 Apr 2011 20:03:02 +0000 (-0700) Subject: bluetooth: Fix use-before-initiailized var. X-Git-Tag: v3.0-rc1~377^2~255 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf734843120b905bacc3d24c88d7455ae70bf6e1;p=pandora-kernel.git bluetooth: Fix use-before-initiailized var. net/bluetooth/l2cap_core.c: In function ‘l2cap_recv_frame’: net/bluetooth/l2cap_core.c:3612:15: warning: ‘sk’ may be used uninitialized in this function net/bluetooth/l2cap_core.c:3612:15: note: ‘sk’ was declared here Actually the problem is in the inline function l2cap_data_channel(), we branch to the label 'done' which tests 'sk' before we set it to anything. Initialize it to NULL to fix this. Signed-off-by: David S. Miller --- Reading git-diff-tree failed