lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

Commit 81cb54ac authored by Sasha Levin's avatar Sasha Levin Committed by Greg Kroah-Hartman

mtd: diskonchip: mem resource name is not optional

commit 86e4bbc7 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: default avatarSasha Levin <sasha.levin@oracle.com>
Tested-by: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4893808f
...@@ -1438,7 +1438,7 @@ static int __init doc_probe(unsigned long physadr) ...@@ -1438,7 +1438,7 @@ static int __init doc_probe(unsigned long physadr)
int reg, len, numchips; int reg, len, numchips;
int ret = 0; int ret = 0;
if (!request_mem_region(physadr, DOC_IOREMAP_LEN, NULL)) if (!request_mem_region(physadr, DOC_IOREMAP_LEN, "DiskOnChip"))
return -EBUSY; return -EBUSY;
virtadr = ioremap(physadr, DOC_IOREMAP_LEN); virtadr = ioremap(physadr, DOC_IOREMAP_LEN);
if (!virtadr) { if (!virtadr) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment