Skip to content
Commit a8543e18 authored by Stephen M. Cameron's avatar Stephen M. Cameron Committed by popcornmix
Browse files

hpsa: fix bad -ENOMEM return value in hpsa_big_passthru_ioctl



commit 0758f4f7 upstream.

When copy_from_user fails, return -EFAULT, not -ENOMEM

Signed-off-by: default avatarStephen M. Cameron <scameron@beardog.cce.hp.com>
Reported-by: default avatarRobert Elliott <elliott@hp.com>
Reviewed-by: default avatarJoe Handzik <joseph.t.handzik@hp.com>
Reviewed-by: default avatarScott Teel <scott.teel@hp.com>
Reviewed by: Mike MIller <michael.miller@canonical.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent c1d52fb6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment