aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorJiasheng Jiang <[email protected]>2023-06-19 17:28:02 +0800
committerCorey Minyard <[email protected]>2023-06-19 11:40:38 -0500
commitc5586d0f711e9744d0cade39b0c4a2d116a333ca (patch)
treee0e13134c6c90aa67b4c3d40a53f03edb2000bc3 /lib/test_fortify/write_overflow-strncpy-src.c
parent02210d52641a2f0d35daf67d7bad2801baeb72da (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