forked from Minki/linux
mtd: diskonchip: mem resource name is not optional
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> Cc: <stable@vger.kernel.org> # 3.14 Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
148256fa0b
commit
86e4bbc766
@ -1439,7 +1439,7 @@ static int __init doc_probe(unsigned long physadr)
|
||||
int reg, len, numchips;
|
||||
int ret = 0;
|
||||
|
||||
if (!request_mem_region(physadr, DOC_IOREMAP_LEN, NULL))
|
||||
if (!request_mem_region(physadr, DOC_IOREMAP_LEN, "DiskOnChip"))
|
||||
return -EBUSY;
|
||||
virtadr = ioremap(physadr, DOC_IOREMAP_LEN);
|
||||
if (!virtadr) {
|
||||
|
Loading…
Reference in New Issue
Block a user