]> 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)
commitcd7901b20f6d26ea2f9dfc88ebcd06a44d5d0b0f
tree68e515a78cf5772c43dd826c5b74fdc7b957d1ef
parentd7cd7b845c301909f282a8f26eb76e455361effc
parentf913d6db084e38f1aa1c6d112e7829c1c7f844ad
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>