lkml.org 
[lkml]   [2024]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH] tipc: Improve exception handling in tipc_bcast_init()
Date
>Subject: [PATCH] tipc: Improve exception handling in tipc_bcast_init()
>
>From: Markus Elfring <elfring@users.sourceforge.net>
>Date: Sun, 31 Dec 2023 12:20:06 +0100
>
>The kfree() function was called in two cases by the tipc_bcast_init() function during error handling even if the passed variable
>contained a null pointer.
>This issue was detected by using the Coccinelle software.
kfree() validates the pointer before doing actual memory free. Your patch is not necessary.
\
 
 \ /
  Last update: 2024-01-02 01:28    [W:0.050 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site