[PATCH] ide-cd: clear random-write capability it not supported
Add CDC-RAM to capability mask. This prevents udev incorrectly reporting RAM capabilities for device. Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru> Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
daef265f15
commit
c0400dc507
|
@ -2895,6 +2895,8 @@ static int ide_cdrom_register (ide_drive_t *drive, int nslots)
|
|||
devinfo->mask |= CDC_CLOSE_TRAY;
|
||||
if (!CDROM_CONFIG_FLAGS(drive)->mo_drive)
|
||||
devinfo->mask |= CDC_MO_DRIVE;
|
||||
if (!CDROM_CONFIG_FLAGS(drive)->ram)
|
||||
devinfo->mask |= CDC_RAM;
|
||||
|
||||
devinfo->disk = info->disk;
|
||||
return register_cdrom(devinfo);
|
||||
|
|
Loading…
Reference in New Issue