]> git.baikalelectronics.ru Git - kernel.git/commit
iser-target: Fix error path in isert_create_pi_ctx()
authorRoland Dreier <roland@purestorage.com>
Sat, 30 May 2015 06:12:10 +0000 (23:12 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 31 May 2015 03:01:04 +0000 (20:01 -0700)
commitdc77b82f1ca4fea3d6d15aa90efeac315903d5e0
treef2fab5419c4543973d9dad998a587768d29913b7
parent748b0aae801672220410829c09a276ac8668c705
iser-target: Fix error path in isert_create_pi_ctx()

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>
drivers/infiniband/ulp/isert/ib_isert.c