Re: [PATCH 1/1] tipc: check return value of nlmsg_new
From: Joe Perches
Date: Sun Apr 23 2017 - 03:18:41 EST
On Sun, 2017-04-23 at 15:09 +0800, Pan Bian wrote:
> Function nlmsg_new() will return a NULL pointer if there is no enough
> memory, and its return value should be checked before it is used.
> However, in function tipc_nl_node_get_monitor(), the validation of the
> return value of function nlmsg_new() is missed. This patch fixes the
> bug.
Hello.
Thanks for the patches.
Are you finding these via a tool or inspection?
If a tool is being used, could you please describe it?