f2fs: avoid null dereference in f2fs_acl_from_disk
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 3 Jan 2013 00:24:28 +0000 (09:24 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 4 Jan 2013 00:46:27 +0000 (09:46 +0900)
commitc1b75eabec4eddce55ebb078f84481f58272878f
tree9d792a10e129791ac70929190a5614ea4ec91bea
parentd66d1f76878fcb1e78592fe8aecd13f438d6c0d7
f2fs: avoid null dereference in f2fs_acl_from_disk

This patch resolves Coverity #751303:

>>> CID 753103: Explicit null dereferenced (FORWARD_NULL) Passing null
>>> pointer "value" to function "f2fs_acl_from_disk(char const *, size_t)",
which dereferences it.

[Error path]
- value = NULL;
- retval = 0 by f2fs_getxattr();
- f2fs_acl_from_disk(value:NULL, ...);

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/acl.c