[PATCH 3/3] staging: comedi: serial2002: fix Coverity "Explicit null dereference"

Dan Carpenter dan.carpenter at oracle.com
Tue Apr 21 08:52:11 UTC 2015


Yeah.  That's tricky code for a static checker.  You have to know that
if the caller passes kind = 1 or 2 then range is NULL.

The caller users S2002_CFG_KIND_DIGITAL_IN and S2002_CFG_KIND_DIGITAL_OUT
for 1 and 2.

regards,
dan carpenter



More information about the devel mailing list