]> err.no Git - linux-2.6/blobdiff - drivers/scsi/sg.c
JFS: Fix regression. fsck complains if symlinks do not have INLINEEA attribute
[linux-2.6] / drivers / scsi / sg.c
index 221e96e2620a66f3b9cb264e9c387c85f9ef7add..78aad9582bcfbef87399ac33e02fa60b39712cdc 100644 (file)
@@ -2493,7 +2493,7 @@ sg_page_malloc(int rqSz, int lowDma, int *retSzp)
        }
        if (resp) {
                if (!capable(CAP_SYS_ADMIN) || !capable(CAP_SYS_RAWIO))
-                       memset(resp, 0, resSz);
+                       memset(page_address(resp), 0, resSz);
                if (retSzp)
                        *retSzp = resSz;
        }