git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
[pandora-kernel.git]
/
fs
/
cifs
/
cifsacl.c
diff --git
a/fs/cifs/cifsacl.c
b/fs/cifs/cifsacl.c
index
1e7636b
..
beeebf1
100644
(file)
--- a/
fs/cifs/cifsacl.c
+++ b/
fs/cifs/cifsacl.c
@@
-372,6
+372,10
@@
static void parse_dacl(struct cifs_acl *pdacl, char *end_of_acl,
ppace = kmalloc(num_aces * sizeof(struct cifs_ace *),
GFP_KERNEL);
+ if (!ppace) {
+ cERROR(1, "DACL memory allocation error");
+ return;
+ }
for (i = 0; i < num_aces; ++i) {
ppace[i] = (struct cifs_ace *) (acl_base + acl_size);