diff options
author | Johan Hovold <jhovold@gmail.com> | 2010-02-27 16:24:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-19 07:24:03 -0700 |
commit | eb8878a881c306ff3eab6e741ab8fc94096f4e1a (patch) | |
tree | a6dee42012439d65e48bb89e274d44c95246f5e1 /firmware/r128/r128_cce.bin.ihex | |
parent | 6313620228624ff4dcb78b1dbd459d0c208df126 (diff) |
USB: serial: use port endpoint size to determine if ep is available
It is possible to have a multi-port device with a port lacking an in or
out bulk endpoint. Only checking for num_bulk_in or num_bulk_out is thus not
sufficient to determine whether a specific port has an in or out bulk
endpoint.
This fixes potential null pointer dereferences in the generic open and
write routines, as well as access to uninitialised fifo in write_room
and chars_in_buffer.
Also let write fail with ENODEV (instead of 0) on missing out endpoint
(also on zero-length writes).
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'firmware/r128/r128_cce.bin.ihex')
0 files changed, 0 insertions, 0 deletions