From: Mike Christie Date: Fri, 24 Jun 2011 20:11:54 +0000 (-0500) Subject: [SCSI] iscsi_tcp: fix locking around iscsi sk user data X-Git-Tag: v3.1-rc1~270^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03adb5f91280b433c3685d0ee86b2e1424af3d88;p=pandora-kernel.git [SCSI] iscsi_tcp: fix locking around iscsi sk user data iscsi_sw_tcp_conn_restore_callbacks could have set the sk_user_data field to NULL then iscsi_sw_tcp_data_ready could read that and try to access the NULL pointer. This adds some checks for NULL sk_user_data in the sk callback functions and it uses the sk_callback_lock to set/get that sk_user_data field. Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- Reading git-diff-tree failed