This is a note to let you know that I've just added the patch titled hpsa: fix bad -ENOMEM return value in hpsa_big_passthru_ioctl to the 3.16-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: hpsa-fix-bad-enomem-return-value-in-hpsa_big_passthru_ioctl.patch and it can be found in the queue-3.16 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 0758f4f732b08b6ef07f2e5f735655cf69fea477 Mon Sep 17 00:00:00 2001 From: "Stephen M. Cameron" <scameron@xxxxxxxxxxxxxxxxxx> Date: Thu, 3 Jul 2014 10:18:03 -0500 Subject: hpsa: fix bad -ENOMEM return value in hpsa_big_passthru_ioctl From: "Stephen M. Cameron" <scameron@xxxxxxxxxxxxxxxxxx> commit 0758f4f732b08b6ef07f2e5f735655cf69fea477 upstream. When copy_from_user fails, return -EFAULT, not -ENOMEM Signed-off-by: Stephen M. Cameron <scameron@xxxxxxxxxxxxxxxxxx> Reported-by: Robert Elliott <elliott@xxxxxx> Reviewed-by: Joe Handzik <joseph.t.handzik@xxxxxx> Reviewed-by: Scott Teel <scott.teel@xxxxxx> Reviewed by: Mike MIller <michael.miller@xxxxxxxxxxxxx> Signed-off-by: Christoph Hellwig <hch@xxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/scsi/hpsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -5092,7 +5092,7 @@ static int hpsa_big_passthru_ioctl(struc } if (ioc->Request.Type.Direction & XFER_WRITE) { if (copy_from_user(buff[sg_used], data_ptr, sz)) { - status = -ENOMEM; + status = -EFAULT; goto cleanup1; } } else Patches currently in stable-queue which might be from scameron@xxxxxxxxxxxxxxxxxx are queue-3.16/hpsa-fix-bad-enomem-return-value-in-hpsa_big_passthru_ioctl.patch queue-3.16/hpsa-fix-non-x86-builds.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html