Skip to content

Commit 257bf41

Browse files
arndbaxboe
authored andcommitted
pktcdvd: fix regression on 64-bit architectures
The support for the compat ioctl did not actually do what it was supposed to do because of a typo, instead it broke native support for CDROM_LAST_WRITTEN and CDROM_SEND_PACKET on all architectures with CONFIG_COMPAT enabled. Fixes: 1b114b0 ("pktcdvd: add compat_ioctl handler") Signed-off-by: Arnd Bergmann <[email protected]> ---- Please apply for v5.5, I just noticed the regression while rebasing some of the patches I created on top. Signed-off-by: Jens Axboe <[email protected]>
1 parent df034c9 commit 257bf41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/block/pktcdvd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2707,7 +2707,7 @@ static const struct block_device_operations pktcdvd_ops = {
27072707
.release = pkt_close,
27082708
.ioctl = pkt_ioctl,
27092709
#ifdef CONFIG_COMPAT
2710-
.ioctl = pkt_compat_ioctl,
2710+
.compat_ioctl = pkt_compat_ioctl,
27112711
#endif
27122712
.check_events = pkt_check_events,
27132713
};

0 commit comments

Comments
 (0)