dpll: Fix potential msg memleak when genlmsg_put_reply failed
authorHao Ge <gehao@kylinos.cn>
Tue, 21 Nov 2023 01:37:09 +0000 (09:37 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 22 Nov 2023 01:41:20 +0000 (17:41 -0800)
commitb6fe6f03716da246b453369f98a553d4ab21447c
tree313cbf3fe6e2fe5323492cdcee9b839ed0e82ae9
parentb2d66643dcf2c395207f9373c624e0ab32166e57
dpll: Fix potential msg memleak when genlmsg_put_reply failed

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@kylinos.cn>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://lore.kernel.org/r/20231121013709.73323-1-gehao@kylinos.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/dpll/dpll_netlink.c