[PATCH v2 0/2] mtd: mtdconcat: Fix callback functions check

From: Zhihao Cheng
Date: Tue Aug 17 2021 - 07:38:31 EST


Patch 1: Check subdev's master mtd device's callback function while
making concatenated device.
Patch 2: Check existence of _read|_write callback before assigning
them to concatenated device.

v1->v2:
Shorten two commit titles.
Patch 1: Add comment to explain why datamember checks for subdev
but callbacks checks for master device
Patch 1: Fix misspelled word, "comnoine fail" -> "combine failed"
Patch 2: Fix wrong commit message, "Since ... time. We should"
Patch 2: Check against the existence of _read|_read_oob callbacks
by master, no removing concat_{read|write}_oob.

Zhihao Cheng (2):
mtd: mtdconcat: Judge callback existence based on the master
mtd: mtdconcat: Check _read,_write callbacks existence before
assignment

drivers/mtd/mtdconcat.c | 33 +++++++++++++++++++++++----------
1 file changed, 23 insertions(+), 10 deletions(-)

--
2.31.1