diff options
author | Sven Schnelle <svens@stackframe.org> | 2012-08-17 21:43:43 +0200 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-09-12 03:37:13 +0100 |
commit | 76e0246b1c62a12db0c9af652be580019ee4666a (patch) | |
tree | 644f0df4d7a7fa06973daae684ff216dfa2bc1ac /arch | |
parent | 0a97b367d2da87668e8b20f1d10d6956ed76bb1a (diff) |
USB: CDC ACM: Fix NULL pointer dereference
commit 99f347caa4568cb803862730b3b1f1942639523f upstream.
If a device specifies zero endpoints in its interface descriptor,
the kernel oopses in acm_probe(). Even though that's clearly an
invalid descriptor, we should test wether we have all endpoints.
This is especially bad as this oops can be triggered by just
plugging a USB device in.
Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions