Commit c5586d0f authored by Jiasheng Jiang's avatar Jiasheng Jiang Committed by Corey Minyard
Browse files

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: c4436c91

 ("ipmi_ssif: avoid registering duplicate ssif interface")
Signed-off-by: default avatarJiasheng Jiang <jiasheng@iscas.ac.cn>
Message-Id: <20230619092802.35384-1-jiasheng@iscas.ac.cn>
Signed-off-by: default avatarCorey Minyard <minyard@acm.org>
parent 02210d52
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment