diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2011-06-24 15:11:54 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-10-03 11:40:42 -0700 |
commit | 52734d26ffca727da0e687963333ae88056ad84b (patch) | |
tree | f174c23bf4563de3e86929c9da1b86e56f0027ed /drivers/memstick | |
parent | e37143e6522a978b62ed4142741236af1f381d1d (diff) | |
download | kernel_samsung_smdk4412-52734d26ffca727da0e687963333ae88056ad84b.tar.gz kernel_samsung_smdk4412-52734d26ffca727da0e687963333ae88056ad84b.tar.bz2 kernel_samsung_smdk4412-52734d26ffca727da0e687963333ae88056ad84b.zip |
iscsi_tcp: fix locking around iscsi sk user data
commit 03adb5f91280b433c3685d0ee86b2e1424af3d88 upstream.
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 <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/memstick')
0 files changed, 0 insertions, 0 deletions