]> git.baikalelectronics.ru Git - kernel.git/commit
ipmi:ssif: Handle a possible NULL pointer reference
authorCorey Minyard <cminyard@mvista.com>
Mon, 23 Dec 2019 16:42:19 +0000 (10:42 -0600)
committerCorey Minyard <cminyard@mvista.com>
Mon, 23 Dec 2019 16:42:19 +0000 (10:42 -0600)
commit9779faf79b4063080a477c077d8167358244b399
treee9275170adf2cca9e2458039333dcc69f65a46eb
parent0bdf2b201dd7d5c82d12b41b5c228fc0333d2c40
ipmi:ssif: Handle a possible NULL pointer reference

In error cases a NULL can be passed to memcpy.  The length will always
be zero, so it doesn't really matter, but go ahead and check for NULL,
anyway, to be more precise and avoid static analysis errors.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_ssif.c