OSDN Git Service

Merge branch 'net-lan78xx-fix-NULL-deref-and-memory-leak'
authorDavid S. Miller <davem@davemloft.net>
Tue, 28 Jul 2020 20:35:44 +0000 (13:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jul 2020 20:35:44 +0000 (13:35 -0700)
commit2ff34c909f75d2d145a27b84e2ee6710a6b43446
tree68e515a78cf5772c43dd826c5b74fdc7b957d1ef
parente911e99a0770f760377c263bc7bac1b1593c6147
parentea060b352654a8de1e070140d25fe1b7e4d50310
Merge branch 'net-lan78xx-fix-NULL-deref-and-memory-leak'

Johan Hovold says:

====================
net: lan78xx: fix NULL deref and memory leak

The first two patches fix a NULL-pointer dereference at probe that can
be triggered by a malicious device and a small transfer-buffer memory
leak, respectively.

For another subsystem I would have marked them:

Cc: stable@vger.kernel.org # 4.3
The third one replaces the driver's current broken endpoint lookup
helper, which could end up accepting incomplete interfaces and whose
results weren't even useeren
Johan
====================

Signed-off-by: David S. Miller <davem@davemloft.net>