summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-09-07 23:06:32 +0200
committerCorey Minyard <cminyard@mvista.com>2021-10-29 07:23:59 -0500
commitf281d010b87454e72475b668ad66e34961f744e0 (patch)
tree07a0e9c6f68243f19d7ff67a11c0453c70fdede2 /include
parentfc4e78481afa33585195e896f0f9d9cec1129c80 (diff)
downloadlinux-f281d010b87454e72475b668ad66e34961f744e0.tar.bz2
ipmi: kcs_bmc: Fix a memory leak in the error handling path of 'kcs_bmc_serio_add_device()'
In the unlikely event where 'devm_kzalloc()' fails and 'kzalloc()' succeeds, 'port' would be leaking. Test each allocation separately to avoid the leak. Fixes: 3a3d2f6a4c64 ("ipmi: kcs_bmc: Add serio adaptor") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Message-Id: <ecbfa15e94e64f4b878ecab1541ea46c74807670.1631048724.git.christophe.jaillet@wanadoo.fr> Reviewed-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions