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:Yi Cong <yicong@kylinos.cn> Reviewed-by:
Simon 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:
Paolo Abeni <pabeni@redhat.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading