Tag: f0e0e9bba5eed2086f6001be14f21566a49bed10

tcm_vhost: Fix incorrect IS_ERR() usage in vhost_scsi_map_iov_to_sgl

Author: Fengguang Wu <fengguang.wu@intel.com> 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, …

Continue reading