summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorVladis Dronov <vdronov@redhat.com>2016-03-31 10:53:42 -0700
committerSasha Levin <sasha.levin@oracle.com>2016-05-08 08:08:58 -0400
commit464508beeb30376f277fbfbfd9137cf19cbfa785 (patch)
treef638b367579485dc6a1203e4ca2b50288376ae5f /arch
parentfdfdfc7cdf6bfd1ec60d26f123a2b73caf9617f3 (diff)
Input: gtco - fix crash on detecting device without endpoints
[ Upstream commit 162f98dea487206d9ab79fc12ed64700667a894d ] The gtco driver expects at least one valid endpoint. If given malicious descriptors that specify 0 for the number of endpoints, it will crash in the probe function. Ensure there is at least one endpoint on the interface before using it. Also let's fix a minor coding style issue. The full correct report of this issue can be found in the public Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1283385 Reported-by: Ralf Spenneberg <ralf@spenneberg.net> Signed-off-by: Vladis Dronov <vdronov@redhat.com> Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions