File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1515#include <linux/slab.h>
1616#include <linux/types.h>
1717#include <linux/spinlock.h>
18+ #include <linux/mm.h>
1819#include <uapi/linux/xattr.h>
1920
2021struct inode ;
@@ -94,7 +95,7 @@ static inline void simple_xattrs_free(struct simple_xattrs *xattrs)
9495
9596 list_for_each_entry_safe (xattr , node , & xattrs -> head , list ) {
9697 kfree (xattr -> name );
97- kfree (xattr );
98+ kvfree (xattr );
9899 }
99100}
100101
Original file line number Diff line number Diff line change @@ -3178,7 +3178,7 @@ static int shmem_initxattrs(struct inode *inode,
31783178 new_xattr -> name = kmalloc (XATTR_SECURITY_PREFIX_LEN + len ,
31793179 GFP_KERNEL );
31803180 if (!new_xattr -> name ) {
3181- kfree (new_xattr );
3181+ kvfree (new_xattr );
31823182 return - ENOMEM ;
31833183 }
31843184
You can’t perform that action at this time.
0 commit comments