diff options
| author | Johan Hovold <johan@kernel.org> | 2019-11-07 14:28:56 +0100 |
|---|---|---|
| committer | Johan Hovold <johan@kernel.org> | 2019-11-12 09:56:45 +0100 |
| commit | 960fbd1ca584a5b4cd818255769769d42bfc6dbe (patch) | |
| tree | b4898add53f7e973990db8cabedf47d2a8f3470b /net/lapb/lapb_timer.c | |
| parent | 1c333550ea92a9c7a5fdf0f3474eba3387478f20 (diff) | |
USB: serial: mos7840: fix probe error handling
The driver would return success and leave the port structures
half-initialised if any of the register accesses during probe fails.
This would specifically leave the port control urb unallocated,
something which could trigger a NULL pointer dereference on interrupt
events.
Fortunately the interrupt implementation is completely broken and has
never even been enabled...
Note that the zero-length-enable register write used to set the zle-flag
for all ports is moved to attach.
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions
