Bug 1896 - drivers/net/bonding/bond_alb.c:861 rlb_initialize() warn: returning -1 instead of -ENOMEM is sloppy
Summary: drivers/net/bonding/bond_alb.c:861 rlb_initialize() warn: returning -1 instea...
Status: NEW
Alias: None
Product: Upstream
Classification: Unclassified
Component: drivers (show other bugs) drivers
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: abaci-robot
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-12 10:42 UTC by abaci-robot
Modified: 2022-08-12 10:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abaci-robot alibaba_cloud_group 2022-08-12 10:42:51 UTC
ABACI reported the following bug by code static scanning:

drivers/net/bonding/bond_alb.c:861 rlb_initialize() warn: returning -1 instead of -ENOMEM is sloppy.



In the following kernel version:

[+]kernel: http://kernel.source.codeaurora.cn/pub/scm/linux/kernel/git/next/linux-next.git
[+]branch: next-20220811
[+]commit: 40d43a7507e1547dd45cb02af2e40d897c591870