projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6150c32
)
[PATCH] Fix sg_page_malloc() memset
author
Hugh Dickins
<hugh@veritas.com>
Mon, 9 Jan 2006 20:46:49 +0000
(20:46 +0000)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 9 Jan 2006 20:57:05 +0000
(12:57 -0800)
sg_page_malloc should clear the data buffer, not that extent of mem_map.
This fixes Jesper's sg_page_free "Bad page states"
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/scsi/sg.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/sg.c
b/drivers/scsi/sg.c
index 221e96e2620a66f3b9cb264e9c387c85f9ef7add..78aad9582bcfbef87399ac33e02fa60b39712cdc 100644
(file)
--- a/
drivers/scsi/sg.c
+++ b/
drivers/scsi/sg.c
@@
-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;
}