All of lore.kernel.org
 help / color / mirror / Atom feed
From: Artem Bityutskiy <dedekind1@gmail.com>
To: Frank Li <Frank.Li@freescale.com>
Cc: dwmw2@infradead.org, linux-mtd@lists.infradead.org,
	linux-kernel.vger.kernel.org@shlinux.ap.freescale.net
Subject: Re: [PATCH 1/1] [MTD]:CORE Fix wrong check register_blkdev return value
Date: Fri, 26 Nov 2010 17:43:04 +0200	[thread overview]
Message-ID: <1290786184.2552.21.camel@localhost> (raw)
In-Reply-To: <1289386349-29033-1-git-send-email-Frank.Li@freescale.com>

On Wed, 2010-11-10 at 18:52 +0800, Frank Li wrote:
> register_blkdev return 1..255 when major = 0.
> 
> if (ret ) {
> 	printk(KERN_WARNING "Unable to register %s block device on major %d: %d\n",
> 		tr->name, tr->major, ret);
> 	      mutex_unlock(&mtd_table_mutex);
> 	return ret;
> }
> 
> Above code will return fail when register_blkdev return allocated major number.
> 
> Signed-off-by: Frank Li <Frank.Li@freescale.com>

This patch is already in upstream.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

      reply	other threads:[~2010-11-26 15:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-10 10:52 [PATCH 1/1] [MTD]:CORE Fix wrong check register_blkdev return value Frank Li
2010-11-26 15:43 ` Artem Bityutskiy [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=1290786184.2552.21.camel@localhost \
    --to=dedekind1@gmail.com \
    --cc=Frank.Li@freescale.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-kernel.vger.kernel.org@shlinux.ap.freescale.net \
    --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: 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.