diff for duplicates of <20160413111441.GC4247@mwanda> diff --git a/a/1.txt b/N1/1.txt index 6f271fb..270535e 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -36,7 +36,7 @@ index 7223b00..31426ae 100644 struct bfad_itnim_s **itnim_drv) { *itnim_drv = kzalloc(sizeof(struct bfad_itnim_s), GFP_ATOMIC); - if (*itnim_drv = NULL) + if (*itnim_drv == NULL) - return; + return -ENOMEM; @@ -64,7 +64,7 @@ index 6dc7926..829247e 100644 * call bfad to allocate the itnim */ - bfa_fcb_itnim_alloc(port->fcs->bfad, &itnim, &itnim_drv); -- if (itnim = NULL) { +- if (itnim == NULL) { + ret = bfa_fcb_itnim_alloc(port->fcs->bfad, &itnim, &itnim_drv); + if (ret) { bfa_trc(port->fcs, rport->pwwn); diff --git a/a/content_digest b/N1/content_digest index e0bab8d..fe98086 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020160413105946.GA1895@mwanda\0" "From\0Dan Carpenter <dan.carpenter@oracle.com>\0" "Subject\0[PATCH resend v2] [SCSI] bfa: fix bfa_fcb_itnim_alloc() error handling\0" - "Date\0Wed, 13 Apr 2016 11:14:41 +0000\0" + "Date\0Wed, 13 Apr 2016 14:14:41 +0300\0" "To\0Anil Gurumurthy <anil.gurumurthy@qlogic.com>\0" "Cc\0Sudarsana Kalluru <sudarsana.kalluru@qlogic.com>" James E.J. Bottomley <jejb@linux.vnet.ibm.com> @@ -48,7 +48,7 @@ " \t\t struct bfad_itnim_s **itnim_drv)\n" " {\n" " \t*itnim_drv = kzalloc(sizeof(struct bfad_itnim_s), GFP_ATOMIC);\n" - " \tif (*itnim_drv = NULL)\n" + " \tif (*itnim_drv == NULL)\n" "-\t\treturn;\n" "+\t\treturn -ENOMEM;\n" " \n" @@ -76,11 +76,11 @@ " \t * call bfad to allocate the itnim\n" " \t */\n" "-\tbfa_fcb_itnim_alloc(port->fcs->bfad, &itnim, &itnim_drv);\n" - "-\tif (itnim = NULL) {\n" + "-\tif (itnim == NULL) {\n" "+\tret = bfa_fcb_itnim_alloc(port->fcs->bfad, &itnim, &itnim_drv);\n" "+\tif (ret) {\n" " \t\tbfa_trc(port->fcs, rport->pwwn);\n" " \t\treturn NULL;\n" " \t}" -90908aed59c5515e0c75d8cf29d05bdc8a6a820da59ccdb59b3d4e4b9b113dab +cd11301d15bee9db7045573704b832f1e75c9619094d49050a194e4a3f7b54e1
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.