summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2013-02-19 16:07:27 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-11 20:15:31 +0400
commitc37aeab62514cd623afa1b952ca86d53dd21a745 (patch)
treed15b4e5f3c5f36e9eb26d1528b9d514fa353054c /tools/perf/scripts/python/bin
parent7791c623b3826ab9dac6fe0bca770776a5e6c4ce (diff)
downloadlinux-c37aeab62514cd623afa1b952ca86d53dd21a745.tar.xz
staging/sep: Fix smatch false positive about potential NULL dereference in sep_main.c
Smatch complains about a potential NULL pointer dereference: sep_main.c:2312 sep_construct_dma_tables_from_lli() error: potential NULL dereference 'info_out_entry_ptr'. info_out_entry_ptr is initialized with NULL and if info_in_entry_ptr is not NULL it gets derefenced. However info_out_entry_ptr is only NULL in the first iteration of the while loop and in this case info_in_entry_ptr is also NULL (as indicated by the comment /* If info entry is null - this is the first table built */ -> this is a false positive. Nevertheless we add a check for info_out_entry_ptr to silence this warning and make it more robust in regard to code changes. Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions