UPSTREAM: USB: mct_u232: add sanity checking in probe

commit 4e9a0b05257f29cf4b75f3209243ed71614d062e upstream.

An attack using the lack of sanity checking in probe is known. This
patch checks for the existence of a second port.

BUG: 28242610
Signed-off-by: Oliver Neukum <>
[johan: add error message ]
Signed-off-by: Johan Hovold <>
Signed-off-by: Greg Kroah-Hartman <>

Signed-off-by: Badhri Jagan Sridharan <>
Change-Id: I284ad648c2087c34a098d67e0cc6d948a568413c
(cherry picked from commit 0cd0c38fa2cef1cad28a2a9ecf9a60cff4cd4038)
1 file changed