mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-22 19:14:51 +00:00
net: systemport: free dev before on error path
commit0c630a66bfupstream. On the error path, it should goto the error handling label to free allocated memory rather than directly return. Fixes:31bc72d976("net: systemport: fetch and use clock resources") Signed-off-by: Pan Bian <bianpan2016@163.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Link: https://lore.kernel.org/r/20210120044423.1704-1-bianpan2016@163.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e018e57fd5
commit
6c19578d46
1 changed files with 4 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue