git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kfifo: Don't use integer as NULL pointer
[sfrench/cifs-2.6.git]
/
kernel
/
kfifo.c
diff --git
a/kernel/kfifo.c
b/kernel/kfifo.c
index 559fb5582b602343def45aeeada25d1d1550dfa1..35edbe22e9a955a1a69cdad290f4861dd76c33e1 100644
(file)
--- a/
kernel/kfifo.c
+++ b/
kernel/kfifo.c
@@
-80,7
+80,7
@@
int kfifo_alloc(struct kfifo *fifo, unsigned int size, gfp_t gfp_mask)
buffer = kmalloc(size, gfp_mask);
if (!buffer) {
- _kfifo_init(fifo,
0
, 0);
+ _kfifo_init(fifo,
NULL
, 0);
return -ENOMEM;
}