Re: [PATCH v2] dpll: Fix potential msg memleak when genlmsg_put_reply failed

From: Vadim Fedorenko
Date: Tue Nov 21 2023 - 06:20:51 EST


On 21/11/2023 20:37, Hao Ge wrote:
We should clean the skb resource if genlmsg_put_reply failed.

Fixes: 9d71b54b65b1 ("dpll: netlink: Add DPLL framework base functions")
Signed-off-by: Hao Ge <gehao@xxxxxxxxxx>
---
v1 -> v2: change title due to add some similar fix for some similar cases
---
drivers/dpll/dpll_netlink.c | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)

Thanks!

Reviewed-by: Vadim Fedorenko <vadim.fedorenko@xxxxxxxxx>