android_kernel_samsung_msm8976/drivers/scsi/qla2xxx
Dan Carpenter daa12c3ab5 SCSI: qla2xxx: fix error handling of qla2x00_mem_alloc()
commit b2a72ec32d0f499aaadf41264232517a12326df0 upstream.

qla2x00_mem_alloc() returns 1 on success and -ENOMEM on failure.  On the
one hand the caller assumes non-zero is success but on the other hand
the caller also assumes that it returns an error code.

I've fixed it to return zero on success and a negative error code on
failure.  This matches the documentation as well.

[jejb: checkpatch fix]
Fixes: e315cd28b9 ('[SCSI] qla2xxx: Code changes for qla data structure refactoring')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-06 07:55:30 -07:00
..
Kconfig
Makefile
qla_attr.c
qla_bsg.c
qla_bsg.h
qla_dbg.c
qla_dbg.h
qla_def.h
qla_devtbl.h
qla_dfs.c
qla_fw.h
qla_gbl.h
qla_gs.c
qla_init.c
qla_inline.h
qla_iocb.c
qla_isr.c
qla_mbx.c
qla_mid.c
qla_mr.c
qla_mr.h
qla_nx.c
qla_nx.h
qla_os.c SCSI: qla2xxx: fix error handling of qla2x00_mem_alloc() 2014-05-06 07:55:30 -07:00
qla_settings.h
qla_sup.c
qla_target.c
qla_target.h
qla_version.h
tcm_qla2xxx.c
tcm_qla2xxx.h