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 15
15
#include <linux/slab.h>
16
16
#include <linux/types.h>
17
17
#include <linux/spinlock.h>
18
+ #include <linux/mm.h>
18
19
#include <uapi/linux/xattr.h>
19
20
20
21
struct inode ;
@@ -94,7 +95,7 @@ static inline void simple_xattrs_free(struct simple_xattrs *xattrs)
94
95
95
96
list_for_each_entry_safe (xattr , node , & xattrs -> head , list ) {
96
97
kfree (xattr -> name );
97
- kfree (xattr );
98
+ kvfree (xattr );
98
99
}
99
100
}
100
101
Original file line number Diff line number Diff line change @@ -3178,7 +3178,7 @@ static int shmem_initxattrs(struct inode *inode,
3178
3178
new_xattr -> name = kmalloc (XATTR_SECURITY_PREFIX_LEN + len ,
3179
3179
GFP_KERNEL );
3180
3180
if (!new_xattr -> name ) {
3181
- kfree (new_xattr );
3181
+ kvfree (new_xattr );
3182
3182
return - ENOMEM ;
3183
3183
}
3184
3184
You can’t perform that action at this time.
0 commit comments