mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
ipmi:ssif: Add check for kstrdup
[ Upstream commitc5586d0f71] Add check for the return value of kstrdup() and return the error if it fails in order to avoid NULL pointer dereference. Fixes:c4436c9149("ipmi_ssif: avoid registering duplicate ssif interface") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Message-Id: <20230619092802.35384-1-jiasheng@iscas.ac.cn> Signed-off-by: Corey Minyard <minyard@acm.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
3639535d3d
commit
2959a03cb7
1 changed files with 5 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue