partition: route through MEMSETBADBLOCK ioctl
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
e3af15c054
commit
262aea2524
|
@ -198,6 +198,7 @@ static int part_ioctl(struct device_d *dev, int request,
|
|||
off_t offset;
|
||||
|
||||
switch (request) {
|
||||
case MEMSETBADBLOCK:
|
||||
case MEMGETBADBLOCK:
|
||||
offset = (off_t)buf;
|
||||
offset += part->offset;
|
||||
|
|
Loading…
Reference in New Issue