diff options
Diffstat (limited to 'drivers/scsi/sg.c')
-rw-r--r-- | drivers/scsi/sg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 221e96e2620a..78aad9582bcf 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c | |||
@@ -2493,7 +2493,7 @@ sg_page_malloc(int rqSz, int lowDma, int *retSzp) | |||
2493 | } | 2493 | } |
2494 | if (resp) { | 2494 | if (resp) { |
2495 | if (!capable(CAP_SYS_ADMIN) || !capable(CAP_SYS_RAWIO)) | 2495 | if (!capable(CAP_SYS_ADMIN) || !capable(CAP_SYS_RAWIO)) |
2496 | memset(resp, 0, resSz); | 2496 | memset(page_address(resp), 0, resSz); |
2497 | if (retSzp) | 2497 | if (retSzp) |
2498 | *retSzp = resSz; | 2498 | *retSzp = resSz; |
2499 | } | 2499 | } |