diff options
| author | Vladis Dronov <vdronov@redhat.com> | 2016-03-31 10:53:42 -0700 |
|---|---|---|
| committer | Flex1911 <dedsa2002@gmail.com> | 2017-07-10 01:35:45 +0300 |
| commit | 39034b257ad34ea432e9aabee13ded24dc2994be (patch) | |
| tree | 26b73c4f270bd579ff0d3891655f3298f952168f /lib/mpi/mpi-inline.c | |
| parent | 044c0da8aca16c4d21f4a2acbdc4b8489d9b13a2 (diff) | |
Input: gtco - fix crash on detecting device without endpoints
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
Change-Id: Ie90df605d0412aa31fa57047edc0dd59bc3f136b
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>
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions
