Thread (8 messages) 8 messages, 3 authors, 18d ago

Re: [PATCH net 1/2] ibmveth: h_free logical LAN on open-fail after register

flat view

From: Dave Marquardt <hidden>
Date: 2026-09-25 20:36:27
Also in: linuxppc-dev, stable

mingming cao [off-list ref] writes:
On 9/25/26 12:01 PM, Dave Marquardt wrote:
quoted
This code change is good. But I noticed another thing that's a pretty
minor bug of useless code just after this:

	rc = -ENOMEM;

rc isn't used in that code path after it is set. Is there some reason I
do not understand to have this here?
Yeah, that |rc = -ENOMEM| at line 728 is dead — set right before
|return 0| and never read again. Pre-existing junk. |d43732| set it
for the bounce alloc that used to run next. |d6832| moved the TX LTB
earlier and dropped the bounce, but left the line. After |request_irq|
succeeds we replenish, start TX, and return 0.

It's harmless (not user-visible) — I prefer leaving it out of this
Fixes and letting the MQ series clean it up naturally when it rewrites
that whole open() path. But fine to respin a new version if desired.
Agreed.

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