From: Rusty Russell <rusty@rustcorp.com.au> To: Kees Cook <keescook@chromium.org>, akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, David Woodhouse <dwmw2@infradead.org>, James Hogan <james.hogan@imgtec.com>, linux-mtd@lists.infradead.org Subject: Re: [RESEND][PATCH] mtd: refactor call to request_module Date: Wed, 10 Jul 2013 12:40:35 +0930 [thread overview] Message-ID: <87hag3cdp0.fsf@rustcorp.com.au> (raw) In-Reply-To: <20130708130512.GA24315@www.outflux.net> Kees Cook <keescook@chromium.org> writes: > This reduces the size of the stack frame when calling request_module(). > Performing the sprintf before the call is not needed. > > Signed-off-by: Kees Cook <keescook@chromium.org> Acked-by: Rusty Russell <rusty@rustcorp.com.au> Thanks, Rusty. > --- > drivers/mtd/chips/gen_probe.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/mtd/chips/gen_probe.c b/drivers/mtd/chips/gen_probe.c > index 74dbb6b..ffb36ba 100644 > --- a/drivers/mtd/chips/gen_probe.c > +++ b/drivers/mtd/chips/gen_probe.c > @@ -211,9 +211,7 @@ static inline struct mtd_info *cfi_cmdset_unknown(struct map_info *map, > > probe_function = __symbol_get(probename); > if (!probe_function) { > - char modname[sizeof("cfi_cmdset_%4.4X")]; > - sprintf(modname, "cfi_cmdset_%4.4X", type); > - request_module(modname); > + request_module("cfi_cmdset_%4.4X", type); > probe_function = __symbol_get(probename); > } > > -- > 1.7.9.5 > > > -- > Kees Cook > Chrome OS Security > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/
WARNING: multiple messages have this Message-ID (diff)
From: Rusty Russell <rusty@rustcorp.com.au> To: Kees Cook <keescook@chromium.org>, akpm@linux-foundation.org Cc: linux-mtd@lists.infradead.org, James Hogan <james.hogan@imgtec.com>, David Woodhouse <dwmw2@infradead.org>, linux-kernel@vger.kernel.org Subject: Re: [RESEND][PATCH] mtd: refactor call to request_module Date: Wed, 10 Jul 2013 12:40:35 +0930 [thread overview] Message-ID: <87hag3cdp0.fsf@rustcorp.com.au> (raw) In-Reply-To: <20130708130512.GA24315@www.outflux.net> Kees Cook <keescook@chromium.org> writes: > This reduces the size of the stack frame when calling request_module(). > Performing the sprintf before the call is not needed. > > Signed-off-by: Kees Cook <keescook@chromium.org> Acked-by: Rusty Russell <rusty@rustcorp.com.au> Thanks, Rusty. > --- > drivers/mtd/chips/gen_probe.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/mtd/chips/gen_probe.c b/drivers/mtd/chips/gen_probe.c > index 74dbb6b..ffb36ba 100644 > --- a/drivers/mtd/chips/gen_probe.c > +++ b/drivers/mtd/chips/gen_probe.c > @@ -211,9 +211,7 @@ static inline struct mtd_info *cfi_cmdset_unknown(struct map_info *map, > > probe_function = __symbol_get(probename); > if (!probe_function) { > - char modname[sizeof("cfi_cmdset_%4.4X")]; > - sprintf(modname, "cfi_cmdset_%4.4X", type); > - request_module(modname); > + request_module("cfi_cmdset_%4.4X", type); > probe_function = __symbol_get(probename); > } > > -- > 1.7.9.5 > > > -- > Kees Cook > Chrome OS Security > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2013-07-10 3:59 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-07-08 13:05 [RESEND][PATCH] mtd: refactor call to request_module Kees Cook 2013-07-08 13:05 ` Kees Cook 2013-07-10 3:10 ` Rusty Russell [this message] 2013-07-10 3:10 ` Rusty Russell 2013-07-10 8:40 ` James Hogan 2013-07-10 8:40 ` James Hogan 2013-08-02 15:53 ` Artem Bityutskiy 2013-08-02 15:53 ` Artem Bityutskiy -- strict thread matches above, loose matches on Subject: below -- 2013-05-22 23:51 Kees Cook 2013-05-22 23:51 ` Kees Cook 2013-05-23 4:15 ` Rusty Russell 2013-05-23 4:15 ` Rusty Russell
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=87hag3cdp0.fsf@rustcorp.com.au \ --to=rusty@rustcorp.com.au \ --cc=akpm@linux-foundation.org \ --cc=dwmw2@infradead.org \ --cc=james.hogan@imgtec.com \ --cc=keescook@chromium.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mtd@lists.infradead.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: linkBe 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.