]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8c00cab74e9eee4c783290e01b5321cd3b09c706
tree68e515a78cf5772c43dd826c5b74fdc7b957d1ef
parent9f1d185a81ea7db304c5ade6dcea9b54ca19ee1a
parentbd953de60a7358accc47b94e6447816174d44458
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>