Commit 7739bc1
cdrom: respect device capabilities during opening action
[ Upstream commit 366ba7c ]
Reading the TOC only works if the device can play audio, otherwise
these commands fail (and possibly bring the device to an unhealthy
state.)
Similarly, cdrom_mmc3_profile() should only be called if the device
supports generic packet commands.
To: Jens Axboe <axboe@kernel.dk>
Cc: linux-kernel@vger.kernel.org
Cc: linux-scsi@vger.kernel.org
Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 4c45e9e commit 7739bc1
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
996 | 996 | | |
997 | 997 | | |
998 | 998 | | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
999 | 1005 | | |
1000 | 1006 | | |
1001 | 1007 | | |
| |||
1162 | 1168 | | |
1163 | 1169 | | |
1164 | 1170 | | |
1165 | | - | |
| 1171 | + | |
| 1172 | + | |
1166 | 1173 | | |
1167 | 1174 | | |
1168 | 1175 | | |
| |||
2882 | 2889 | | |
2883 | 2890 | | |
2884 | 2891 | | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
2885 | 2895 | | |
2886 | 2896 | | |
2887 | 2897 | | |
| |||
0 commit comments