X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=block%2Fbsg.c;h=0c00870553a3fca2c58c325b780b92689fc677a6;hb=888a6f77e0418b049f83d37547c209b904d30af4;hp=82d58829ba591eeef13a3ed4eca96b8a019c4d85;hpb=d6f3875252bb703a9a3de0b92f7ae154f12c986c;p=pandora-kernel.git diff --git a/block/bsg.c b/block/bsg.c index 82d58829ba59..0c00870553a3 100644 --- a/block/bsg.c +++ b/block/bsg.c @@ -426,7 +426,7 @@ static int blk_complete_sgv4_hdr_rq(struct request *rq, struct sg_io_v4 *hdr, /* * fill in all the output members */ - hdr->device_status = status_byte(rq->errors); + hdr->device_status = rq->errors & 0xff; hdr->transport_status = host_byte(rq->errors); hdr->driver_status = driver_byte(rq->errors); hdr->info = 0;