[PATCH 1/1] [MTD]:CORE Fix wrong check register_blkdev return value
Artem Bityutskiy
dedekind1 at gmail.com
Fri Nov 26 10:43:04 EST 2010
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 at freescale.com>
This patch is already in upstream.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
More information about the linux-mtd
mailing list