Commit 7998193
committed
HID: sony: fix error path in probe
When the setup of the GHL fails, we are not calling hid_hw_stop().
This leads to the hidraw node not being released, meaning a crash
whenever somebody attempts to open the file.
Cc: stable@vger.kernel.org
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20211202095334.14399-2-benjamin.tissoires@redhat.com1 parent f237d90 commit 7998193
1 file changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3037 | 3037 | | |
3038 | 3038 | | |
3039 | 3039 | | |
3040 | | - | |
3041 | | - | |
| 3040 | + | |
| 3041 | + | |
3042 | 3042 | | |
3043 | 3043 | | |
3044 | 3044 | | |
3045 | | - | |
3046 | | - | |
| 3045 | + | |
| 3046 | + | |
| 3047 | + | |
| 3048 | + | |
3047 | 3049 | | |
3048 | 3050 | | |
3049 | 3051 | | |
3050 | 3052 | | |
3051 | | - | |
3052 | | - | |
| 3053 | + | |
| 3054 | + | |
| 3055 | + | |
| 3056 | + | |
3053 | 3057 | | |
3054 | 3058 | | |
3055 | 3059 | | |
| |||
3059 | 3063 | | |
3060 | 3064 | | |
3061 | 3065 | | |
3062 | | - | |
| 3066 | + | |
3063 | 3067 | | |
3064 | 3068 | | |
3065 | 3069 | | |
| |||
3068 | 3072 | | |
3069 | 3073 | | |
3070 | 3074 | | |
| 3075 | + | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
3071 | 3079 | | |
3072 | 3080 | | |
3073 | 3081 | | |
| |||
0 commit comments