diff options
author | Jiasheng Jiang <[email protected]> | 2023-06-19 17:28:02 +0800 |
---|---|---|
committer | Corey Minyard <[email protected]> | 2023-06-19 11:40:38 -0500 |
commit | c5586d0f711e9744d0cade39b0c4a2d116a333ca (patch) | |
tree | e0e13134c6c90aa67b4c3d40a53f03edb2000bc3 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 02210d52641a2f0d35daf67d7bad2801baeb72da (diff) |
ipmi:ssif: Add check for kstrdup
Add check for the return value of kstrdup() and return the error
if it fails in order to avoid NULL pointer dereference.
Fixes: c4436c9149c5 ("ipmi_ssif: avoid registering duplicate ssif interface")
Signed-off-by: Jiasheng Jiang <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Corey Minyard <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions