From: Andrew Morton <akpm@linux-foundation.org>
To: mm-commits@vger.kernel.org, sj@kernel.org,
abaci@linux.alibaba.com, jiapeng.chong@linux.alibaba.com,
akpm@linux-foundation.org
Subject: [folded-merged] mm-damon-implement-a-minimal-stub-for-sysfs-based-damon-interface-fix.patch removed from -mm tree
Date: Tue, 22 Mar 2022 12:17:42 -0700 [thread overview]
Message-ID: <20220322191743.83FD6C340EC@smtp.kernel.org> (raw)
The patch titled
Subject: mm/damon/sysfs: fix missing error code in damon_sysfs_attrs_add_dirs()
has been removed from the -mm tree. Its filename was
mm-damon-implement-a-minimal-stub-for-sysfs-based-damon-interface-fix.patch
This patch was dropped because it was folded into mm-damon-implement-a-minimal-stub-for-sysfs-based-damon-interface.patch
------------------------------------------------------
From: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Subject: mm/damon/sysfs: fix missing error code in damon_sysfs_attrs_add_dirs()
The error code is missing in this code scenario, add the error code
'-ENOMEM' to the return value 'err'.
Eliminate the follow smatch warning:
mm/damon/sysfs.c:1647 damon_sysfs_attrs_add_dirs() warn: missing error
code 'err'.
Link: https://lkml.kernel.org/r/20220302111120.24984-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/damon/sysfs.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- a/mm/damon/sysfs.c~mm-damon-implement-a-minimal-stub-for-sysfs-based-damon-interface-fix
+++ a/mm/damon/sysfs.c
@@ -452,8 +452,10 @@ static int damon_sysfs_attrs_add_dirs(st
attrs->intervals = intervals;
nr_regions_range = damon_sysfs_ul_range_alloc(10, 1000);
- if (!nr_regions_range)
+ if (!nr_regions_range) {
+ err = -ENOMEM;
goto put_intervals_out;
+ }
err = kobject_init_and_add(&nr_regions_range->kobj,
&damon_sysfs_ul_range_ktype, &attrs->kobj,
_
Patches currently in -mm which might be from jiapeng.chong@linux.alibaba.com are
mm-vmallocc-fix-unused-function-warning.patch
mm-damon-implement-a-minimal-stub-for-sysfs-based-damon-interface.patch
reply other threads:[~2022-03-22 19:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220322191743.83FD6C340EC@smtp.kernel.org \
--to=akpm@linux-foundation.org \
--cc=abaci@linux.alibaba.com \
--cc=jiapeng.chong@linux.alibaba.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mm-commits@vger.kernel.org \
--cc=sj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.