diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2011-06-24 22:11:54 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-06-29 23:43:08 +0200 |
commit | 03adb5f91280b433c3685d0ee86b2e1424af3d88 (patch) | |
tree | a3c034aa17d24d0355c5117a7781e473910c640c /drivers/scsi/libiscsi_tcp.c | |
parent | [SCSI] iscsi_ibft, be2iscsi, iscsi_boot: fix boot kobj data lifetime management (diff) | |
download | linux-03adb5f91280b433c3685d0ee86b2e1424af3d88.tar.xz linux-03adb5f91280b433c3685d0ee86b2e1424af3d88.zip |
[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 <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/libiscsi_tcp.c')
0 files changed, 0 insertions, 0 deletions