https://github.com/torvalds/linux
Revision b2feda4feb1b0ea74c0916b4a35b038bbfef9c82 authored by Roland Dreier on 30 May 2015, 06:12:10 UTC, committed by Nicholas Bellinger on 31 May 2015, 03:01:04 UTC
We don't assign pi_ctx to desc->pi_ctx until we're certain to succeed
in the function.  That means the cleanup path should use the local
pi_ctx variable, not desc->pi_ctx.

This was detected by Coverity (CID 1260062).

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
1 parent a354170
History
Tip revision: b2feda4feb1b0ea74c0916b4a35b038bbfef9c82 authored by Roland Dreier on 30 May 2015, 06:12:10 UTC
iser-target: Fix error path in isert_create_pi_ctx()
Tip revision: b2feda4
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 4.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.5 KB
Kbuild -rw-r--r-- 2.1 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 301.9 KB
Makefile -rw-r--r-- 53.1 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top