linux-stable/drivers/cdrom
Jens Axboe 2cd0b70c55 cdrom: don't attempt to fiddle with cdo->capability
[ Upstream commit 8f94004e2a ]

We can't modify cdo->capability as it is defined as a const.
Change the modification hack to just WARN_ON_ONCE() if we hit
any of the invalid combinations.

This fixes a regression for pcd, which doesn't work after the
constify patch.

Fixes: 853fe1bf75 ("cdrom: Make device operations read-only")
Tested-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-01 09:16:20 +01:00
..
cdrom.c cdrom: don't attempt to fiddle with cdo->capability 2019-12-01 09:16:20 +01:00
gdrom.c gdrom: fix a memory leak bug 2019-02-12 19:47:18 +01:00
Makefile Merge branch 'for-4.15/block' of git://git.kernel.dk/linux-block 2017-11-14 15:32:19 -08:00