projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
udmabuf: fix general protection fault in udmabuf_create
[linux-2.6-microblaze.git]
/
drivers
/
dma-buf
/
udmabuf.c
diff --git
a/drivers/dma-buf/udmabuf.c
b/drivers/dma-buf/udmabuf.c
index
8df761a
..
c57a609
100644
(file)
--- a/
drivers/dma-buf/udmabuf.c
+++ b/
drivers/dma-buf/udmabuf.c
@@
-227,8
+227,8
@@
static long udmabuf_create(struct miscdevice *device,
if (!hpage) {
hpage = find_get_page_flags(mapping, pgoff,
FGP_ACCESSED);
- if (
IS_ERR(hpage)
) {
- ret =
PTR_ERR(hpage)
;
+ if (
!hpage
) {
+ ret =
-EINVAL
;
goto err;
}
}