Commit 75527d6
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: ec51fbd ("r8152: add USB device driver for config selection")
Cc: [email protected]
Signed-off-by: Yi Cong <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
[[email protected]: clarified the commit message]
Signed-off-by: Paolo Abeni <[email protected]>1 parent 327cd4b commit 75527d6
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10122 | 10122 | | |
10123 | 10123 | | |
10124 | 10124 | | |
10125 | | - | |
| 10125 | + | |
| 10126 | + | |
| 10127 | + | |
| 10128 | + | |
| 10129 | + | |
| 10130 | + | |
10126 | 10131 | | |
10127 | 10132 | | |
10128 | 10133 | | |
| |||
0 commit comments