]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: diskonchip: mem resource name is not optional
authorSasha Levin <sasha.levin@oracle.com>
Wed, 19 Mar 2014 22:24:37 +0000 (18:24 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 May 2014 11:32:54 +0000 (13:32 +0200)
commit81cb54ac10383b6d8c19674c9498a4f0e880250d
tree96f65f61ba98f4eccef76b69ae8bd1f9fe138c46
parent4893808f711ae288cfd36c86e4a1ad694dad3d9e
mtd: diskonchip: mem resource name is not optional

commit 86e4bbc766b9456f583f2fc3c4f6c623b422af88 upstream.

Passing a name to request_mem_region() isn't optional and can't just
be NULL. Passing NULL causes a NULL ptr deref later in the boot
process.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Tested-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/diskonchip.c