Commit 67a664ee authored by Yi Cong's avatar Yi Cong Committed by Greg Kroah-Hartman
Browse files

r8152: add error handling in rtl8152_driver_init



commit 75527d61 upstream.

rtl8152_driver_init() is missing the error handling.
When rtl8152_driver registration fails, rtl8152_cfgselector_driver
should be deregistered.

Fixes: ec51fbd1 ("r8152: add USB device driver for config selection")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarYi Cong <yicong@kylinos.cn>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20251011082415.580740-1-yicongsrfy@163.com


[pabeni@redhat.com: clarified the commit message]
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d7dd034c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment