linux/drivers/staging/sep
Peter Huewe c37aeab625 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>
2013-03-11 09:15:31 -07:00
..
Kconfig staging: sep: SEP update 2012-01-30 14:00:03 -08:00
Makefile staging: sep: SEP update 2012-01-30 14:00:03 -08:00
sep_crypto.c staging: Remove unnecessary OOM messages 2013-02-11 10:10:33 -08:00
sep_crypto.h staging: sep: reworked crypto layer 2012-02-10 10:09:58 -08:00
sep_dev.h staging: sep: reworked crypto layer 2012-02-10 10:09:58 -08:00
sep_driver_api.h staging "sep" Fix typos found while reading. 2012-06-12 11:14:33 -07:00
sep_driver_config.h staging "sep" Fix typos found while reading. 2012-06-12 11:14:33 -07:00
sep_driver_hw_defs.h staging: sep: Add new PCI identifier 2012-02-10 10:09:56 -08:00
sep_main.c staging/sep: Fix smatch false positive about potential NULL dereference in sep_main.c 2013-03-11 09:15:31 -07:00
sep_trace_events.h staging: sep: SEP update 2012-01-30 14:00:03 -08:00
TODO staging: sep: SEP update 2012-01-30 14:00:03 -08:00