posix: FORWARD_NULL coverity fix
Problem: filler could be null. Solution: Modified the condition check to avoid NULL pointer dereferencing. BUG: 789278 Change-Id: I0c3e29ede3c226295a9860ddcb3b432832c381dd Signed-off-by: Shwetha Acharya <shwetha174@gmail.com>
This commit is contained in:
parent
1909f2ca01
commit
bae16c4985
@ -836,7 +836,7 @@ _get_list_xattr (posix_xattr_filler_t *filler)
|
||||
{
|
||||
ssize_t size = 0;
|
||||
|
||||
if ((!filler) && (!filler->real_path) && (filler->fdnum < 0))
|
||||
if ((!filler) || ((!filler->real_path) && (filler->fdnum < 0)))
|
||||
goto out;
|
||||
|
||||
if (filler->real_path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user