commit | a4887ea588e9bf515e43094bb09be21e13ee0908 | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Mon Mar 13 13:47:48 2017 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 30 09:41:24 2017 +0200 |
tree | 4c1049cc6269cc2c80f71cb90a5ee39a2fc9a343 | |
parent | 21e0621e3cd7d046715c1cbcbe70ecd34ddd5208 [diff] |
USB: idmouse: fix NULL-deref at probe commit b0addd3fa6bcd119be9428996d5d4522479ab240 upstream. Make sure to check the number of endpoints to avoid dereferencing a NULL-pointer should a malicious device lack endpoints. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>