Thread (4 messages) 4 messages, 4 authors, 2026-01-07

Re: [PATCH v2] net: mediatek: add null pointer check for hardware offloading

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-01-03 08:30:52
Also in: linux-arm-kernel, linux-mediatek, lkml

On Sat, Jan 03, 2026 at 01:50:08AM +0100, Sebastian Roland Wolf wrote:
From: Sebastian Roland Wolf <redacted>

Add a null pointer check to prevent kernel crashes when hardware
offloading is active on MediaTek devices.

In some edge cases, the ethernet pointer or its associated netdev
element can be NULL. Checking these pointers before access is
mandatory to avoid segmentation faults and kernel oops.
Would it make sense to return EOPNOTSUPP, or maybe ENODEV? This does
seem like an error case.

     Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help