The patch titled scsi/libiscsi.c: return -errno rather than errno has been added to the -mm tree. Its filename is scsi-libiscsic-return-errno-rather-than-errno.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: scsi/libiscsi.c: return -errno rather than errno From: Li Zefan <lizf@xxxxxxxxxxxxxx> iscsi_prep_scsi_cmd_pdu() returns EIO in a failing path, but returns -errno in other paths. Signed-off-by: Li Zefan <lizf@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/scsi/libiscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/scsi/libiscsi.c~scsi-libiscsic-return-errno-rather-than-errno drivers/scsi/libiscsi.c --- a/drivers/scsi/libiscsi.c~scsi-libiscsic-return-errno-rather-than-errno +++ a/drivers/scsi/libiscsi.c @@ -307,7 +307,7 @@ static int iscsi_prep_scsi_cmd_pdu(struc hdr->hlength = hdrlength & 0xFF; if (conn->session->tt->init_cmd_task(conn->ctask)) - return EIO; + return -EIO; conn->scsicmd_pdus_cnt++; debug_scsi("iscsi prep [%s cid %d sc %p cdb 0x%x itt 0x%x " _ Patches currently in -mm which might be from lizf@xxxxxxxxxxxxxx are leds-fix-unsigned-value-overflow-in-for-loop.patch scsi-libiscsic-return-errno-rather-than-errno.patch cgroup-use-read-lock-to-guard-find_existing_css_set.patch memcg-avoid-unnecessary-initialization.patch memcg-better-migration-handling.patch memcg-remove-refcnt-from-page_cgroup.patch memcg-remove-refcnt-from-page_cgroup-fix.patch memcg-handle-swap-cache.patch memcg-helper-function-for-relcaim-from-shmem.patch memcg-add-hints-for-branch.patch memcg-remove-a-redundant-check.patch memrlimit-add-memrlimit-controller-documentation.patch memrlimit-setup-the-memrlimit-controller.patch memrlimit-cgroup-mm-owner-callback-changes-to-add-task-info.patch memrlimit-add-memrlimit-controller-accounting-and-control.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html