linux-brain/drivers/cdrom
Jens Axboe 4da708e823 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:13:21 +01:00
..
cdrom.c cdrom: don't attempt to fiddle with cdo->capability 2019-12-01 09:13:21 +01:00
gdrom.c gdrom: fix a memory leak bug 2019-02-12 19:46:09 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00