summaryrefslogtreecommitdiff
path: root/security/lockdown
diff options
context:
space:
mode:
authorVikas Gupta <vikas.gupta@broadcom.com>2024-04-06 02:55:11 +0300
committerDavid S. Miller <davem@davemloft.net>2024-04-08 15:55:46 +0300
commit7ac10c7d728d75bc9daaa8fade3c7a3273b9a9ff (patch)
treebdb94648b9821150c3f14d0251b0440e287f1f8c /security/lockdown
parent58effa3476536215530c9ec4910ffc981613b413 (diff)
downloadlinux-7ac10c7d728d75bc9daaa8fade3c7a3273b9a9ff.tar.xz
bnxt_en: Fix possible memory leak in bnxt_rdma_aux_device_init()
If ulp = kzalloc() fails, the allocated edev will leak because it is not properly assigned and the cleanup path will not be able to free it. Fix it by assigning it properly immediately after allocation. Fixes: 303432211324 ("bnxt_en: Remove runtime interrupt vector allocation") Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com> Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security/lockdown')
0 files changed, 0 insertions, 0 deletions