From: Akira Hayakawa <ruby.wktk@gmail.com>
To: Kumar Amit Mehta <gmate.amit@gmail.com>
Cc: dm-devel@redhat.com
Subject: Re: [PATCH] dm-lc.c: return -ENOMEM if alloc_workqueue fails
Date: Tue, 30 Jul 2013 22:14:09 +0900 [thread overview]
Message-ID: <51F7BC21.6080007@gmail.com> (raw)
In-Reply-To: <1375130890-9279-1-git-send-email-gmate.amit@gmail.com>
Kumar,
Thanks for your patch, applied.
Akira
On 7/30/13 5:48 AM, Kumar Amit Mehta wrote:
> Audit the return value of alloc_workqueue and return -ENOMEM if it fails
>
> Signed-off-by: Kumar Amit Mehta <gmate.amit@gmail.com>
> ---
> Driver/dm-lc.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/Driver/dm-lc.c b/Driver/dm-lc.c
> index 4f48cf2..9d394ee 100644
> --- a/Driver/dm-lc.c
> +++ b/Driver/dm-lc.c
> @@ -2963,6 +2963,8 @@ static int __init lc_module_init(void)
>
> safe_io_wq = alloc_workqueue("safeiowq",
> WQ_NON_REENTRANT | WQ_MEM_RECLAIM, 0);
> + if (!safe_io_wq)
> + return -ENOMEM;
>
> lc_io_client = dm_io_client_create();
>
>
prev parent reply other threads:[~2013-07-30 13:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-29 20:48 [PATCH] dm-lc.c: return -ENOMEM if alloc_workqueue fails Kumar Amit Mehta
2013-07-30 13:14 ` Akira Hayakawa [this message]
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=51F7BC21.6080007@gmail.com \
--to=ruby.wktk@gmail.com \
--cc=dm-devel@redhat.com \
--cc=gmate.amit@gmail.com \
/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.