diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2012-07-30 13:19:07 -0700 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-08-16 17:33:28 -0700 |
commit | f0e0e9bba5eed2086f6001be14f21566a49bed10 (patch) | |
tree | 9b27b7e2162d1707e444267630cc77c95542e92c /drivers/vhost/tcm_vhost.h | |
parent | d9875690d9b89a866022ff49e3fcea892345ad92 (diff) | |
download | linux-f0e0e9bba5eed2086f6001be14f21566a49bed10.tar.gz linux-f0e0e9bba5eed2086f6001be14f21566a49bed10.tar.bz2 linux-f0e0e9bba5eed2086f6001be14f21566a49bed10.zip |
tcm_vhost: Fix incorrect IS_ERR() usage in vhost_scsi_map_iov_to_sgl
Fix up a new coccinelle warnings reported by Fengguang Wu + Intel
0-DAY kernel build testing backend:
drivers/vhost/tcm_vhost.c:537:23-29: ERROR: allocation function on line
533 returns NULL not ERR_PTR on failure
vim +537 drivers/vhost/tcm_vhost.c
534 if (!sg)
535 return -ENOMEM;
536 pr_debug("%s sg %p sgl_count %u is_err %ld\n", __func__,
> 537 sg, sgl_count, IS_ERR(sg));
538 sg_init_table(sg, sgl_count);
539
540 tv_cmd->tvc_sgl = sg;
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/vhost/tcm_vhost.h')
0 files changed, 0 insertions, 0 deletions