aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_main.c
diff options
context:
space:
mode:
authorKamalesh Babulal <[email protected]>2024-02-29 10:11:14 +0000
committerTejun Heo <[email protected]>2024-02-29 20:30:35 +0000
commit25125a4762835d62ba1e540c1351d447fc1f6c7c (patch)
treeb020063ef766483aef7c1e7f34acb2615f711306 /drivers/net/ethernet/intel/igc/igc_main.c
parentcgroup/cpuset: Fix a memory leak in update_exclusive_cpumask() (diff)
downloadkernel-25125a4762835d62ba1e540c1351d447fc1f6c7c.tar.gz
kernel-25125a4762835d62ba1e540c1351d447fc1f6c7c.zip
cgroup/cpuset: Fix retval in update_cpumask()
The update_cpumask(), checks for newly requested cpumask by calling validate_change(), which returns an error on passing an invalid set of cpu(s). Independent of the error returned, update_cpumask() always returns zero, suppressing the error and returning success to the user on writing an invalid cpu range for a cpuset. Fix it by returning retval instead, which is returned by validate_change(). Fixes: 99fe36ba6fc1 ("cgroup/cpuset: Improve temporary cpumasks handling") Signed-off-by: Kamalesh Babulal <[email protected]> Reviewed-by: Waiman Long <[email protected]> Cc: [email protected] # v6.6+ Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions