summaryrefslogtreecommitdiffstats
path: root/arch/mips/mti-malta
diff options
context:
space:
mode:
authorFrank Li <Frank.Li@freescale.com>2010-10-26 05:02:19 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-10-30 13:30:50 +0200
commit6fe4c590313133ebd5dadb769031489ff178ece1 (patch)
tree7fad4ea814e69270869a08cfeb727ed616224765 /arch/mips/mti-malta
parentRevert "mtd: cleanup Kconfig dependencies" (diff)
downloadlinux-6fe4c590313133ebd5dadb769031489ff178ece1.tar.xz
linux-6fe4c590313133ebd5dadb769031489ff178ece1.zip
MTD: Fix wrong check register_blkdev return value
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> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'arch/mips/mti-malta')
0 files changed, 0 insertions, 0 deletions