Re: [PATCH]trivial: add CDC_RAM to ide-cd capabilities mask

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 09 2006, Andrey Borzenkov wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Add CDC-RAM to capability mask. This prevents udev incorrectly reporting RAM 
> capabilities for device.
> 
> Signed-off-by: Andrey Borzenkov <[email protected]>
> 
> - ---
> 
> - --- linux-2.6.15/drivers/ide/ide-cd.c.orig	2006-01-03 06:21:10.000000000 +0300
> +++ linux-2.6.15/drivers/ide/ide-cd.c	2006-01-09 00:31:32.000000000 +0300
> @@ -2905,6 +2905,8 @@ static int ide_cdrom_register (ide_drive
>  		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);

Thanks, patch is correct.

-- 
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux