Skip to content
Commit c5586d0f authored by 蒋家盛's avatar 蒋家盛 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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment