mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-01 16:57:18 +09:00
staging: lustre: fix 'error handling' issues for libcfs workitem.c
Fix 'error handling' issues found by Coverity version 6.5.1: Unchecked return value (CHECKED_RETURN) Calling function without checking return value. Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3427 Reviewed-on: http://review.whamcloud.com/7103 Reviewed-by: Bobbie Lind <bobbie.j.lind@intel.com> Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9d3e85326f
commit
5bfd446e7b
@@ -225,7 +225,9 @@ cfs_wi_scheduler (void *arg)
|
||||
|
||||
/* CPT affinity scheduler? */
|
||||
if (sched->ws_cptab != NULL)
|
||||
cfs_cpt_bind(sched->ws_cptab, sched->ws_cpt);
|
||||
if (cfs_cpt_bind(sched->ws_cptab, sched->ws_cpt) != 0)
|
||||
CWARN("Failed to bind %s on CPT %d\n",
|
||||
sched->ws_name, sched->ws_cpt);
|
||||
|
||||
spin_lock(&cfs_wi_data.wi_glock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user