target/pscsi: blk_make_request() returns an ERR_PTR()

The check is wrong here because blk_make_request() returns an
ERR_PTR() and it doesn't return NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
This commit is contained in:
Dan Carpenter 2011-11-02 08:48:15 -07:00 committed by Nicholas Bellinger
parent 3151d069e9
commit ed327ed337
1 changed files with 1 additions and 1 deletions

View File

@ -1091,7 +1091,7 @@ static int pscsi_do_task(struct se_task *task)
req = blk_make_request(pdv->pdv_sd->request_queue, hbio,
GFP_KERNEL);
if (!req) {
if (IS_ERR(req)) {
pr_err("pSCSI: blk_make_request() failed\n");
goto fail;
}