diff options
author | Bart Van Assche <bvanassche@acm.org> | 2013-08-14 17:35:29 +0200 |
---|---|---|
committer | Robert Love <robert.w.love@intel.com> | 2013-09-04 22:16:25 +0200 |
commit | b86788658be425a5454246a954721d9122d2b3d6 (patch) | |
tree | c8faadee82cd2149e3af75996b51d4db90072724 /drivers/scsi/libfc/fc_frame.c | |
parent | libfc: Clarify fc_exch_find() (diff) | |
download | linux-b86788658be425a5454246a954721d9122d2b3d6.tar.xz linux-b86788658be425a5454246a954721d9122d2b3d6.zip |
libfc: Fix a race in fc_exch_timer_set_locked()
It is allowed to pass a zero timeout value to fc_seq_exch_abort().
Avoid that this can cause the timeout function to drop the exchange
reference before it has been increased by fc_exch_timer_set_locked().
This patch fixes a crash when running FCoE target code with poisoning
enabled in the memory allocator.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Cc: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Diffstat (limited to 'drivers/scsi/libfc/fc_frame.c')
0 files changed, 0 insertions, 0 deletions