Commit 75527d61 authored by Yi Cong's avatar Yi Cong Committed by Paolo Abeni
Browse files

r8152: add error handling in rtl8152_driver_init



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>
parent 327cd4b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment