[PATCH] um: vector: fix return value check in vector_mmsg_rx

Johannes Berg johannes at sipsolutions.net
Mon Oct 9 00:31:53 PDT 2023


On Sat, 2023-10-07 at 08:51 +0800, Ma Ke wrote:
> In vector_mmsg_rx, to avoid an unexpected result returned by
> pskb_trim, we should check the return value of pskb_trim().

And how exactly do you propose pskb_trim() will return anything but 0 in
this scenario?

Please. If you have a static checker, _think_ about it's output before
blindly sending patches.

johannes




More information about the linux-um mailing list