Content-Type: multipart/mixed; boundary="===============2488401830701948838==" MIME-Version: 1.0 From: Jiri Pirko To: kbuild-all@lists.01.org Subject: Re: [PATCH] net: devlink: Fix missing mutex_unlock() call Date: Mon, 01 Aug 2022 16:40:50 +0200 Message-ID: In-Reply-To: <20220801115742.1309329-1-ammar.faizi@intel.com> List-Id: --===============2488401830701948838== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Mon, Aug 01, 2022 at 01:59:56PM CEST, ammarfaizi2(a)gnuweeb.org wrote: >From: Ammar Faizi > >Commit 2dec18ad826f forgets to call mutex_unlock() before the function >returns in the error path: > > New smatch warnings: > net/core/devlink.c:6392 devlink_nl_cmd_region_new() warn: inconsistent \ > returns '®ion->snapshot_lock'. > >Make sure we call mutex_unlock() in this error path. > >Reported-by: kernel test robot >Reported-by: Dan Carpenter >Fixes: 2dec18ad826f52658f7781ee995d236cc449b678 ("net: devlink: remove reg= ion snapshots list dependency on devlink->lock") >Signed-off-by: Ammar Faizi Reviewed-by: Jiri Pirko Thanks for the fix! --===============2488401830701948838==--