aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorSabrina Dubroca <[email protected]>2014-08-26 16:14:02 +0200
committerJens Axboe <[email protected]>2014-08-26 08:20:01 -0600
commitd19d744685f47f1bb3d39b3ec51eb50afe5ff47d (patch)
treee3056acc30ff3e7d928c9d074fd7d22263bc9e66 /net/lapb/lapb_subr.c
parent2ba136daa3ae1e881c9f586f283fcaa164767dce (diff)
block: fix error handling in sg_io
Before commit 2cada584b200 ("block: cleanup error handling in sg_io"), we had ret = 0 before entering the last big if block of sg_io. Since 2cada584b200, ret = -EFAULT, which breaks hdparm: /dev/sda: setting Advanced Power Management level to 0xc8 (200) HDIO_DRIVE_CMD failed: Bad address APM_level = 128 Signed-off-by: Sabrina Dubroca <[email protected]> Fixes: 2cada584b200 ("block: cleanup error handling in sg_io") Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions