Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1580237

Re: [PATCH] cdrom: Make device operations read-only

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] cdrom: Make device operations read-only
Date 2017-02-14 04:00 +0100
Message-ID <taBvr-43Z-3@gated-at.bofh.it> (permalink)
References <tazah-2DY-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Kees Cook <keescook@chromium.org>
Date: Mon, 13 Feb 2017 16:25:26 -0800

> diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
> index 9cbd217bc0c9..ab9232e1e16f 100644
> --- a/drivers/ide/ide-cd.c
> +++ b/drivers/ide/ide-cd.c
> @@ -1166,7 +1166,7 @@ void ide_cdrom_update_speed(ide_drive_t *drive, u8 *buf)
>  	 CDC_CD_RW | CDC_DVD | CDC_DVD_R | CDC_DVD_RAM | CDC_GENERIC_PACKET | \
>  	 CDC_MO_DRIVE | CDC_MRW | CDC_MRW_W | CDC_RAM)
>  
> -static struct cdrom_device_ops ide_cdrom_dops = {
> +static const struct cdrom_device_ops ide_cdrom_dops = {
>  	.open			= ide_cdrom_open_real,
>  	.release		= ide_cdrom_release_real,
>  	.drive_status		= ide_cdrom_drive_status,

Acked-by: David S. Miller <davem@davemloft.net>

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] cdrom: Make device operations read-only Kees Cook <keescook@chromium.org> - 2017-02-14 01:30 +0100
  Re: [PATCH] cdrom: Make device operations read-only David Miller <davem@davemloft.net> - 2017-02-14 04:00 +0100
  Re: [PATCH] cdrom: Make device operations read-only Jens Axboe <axboe@kernel.dk> - 2017-02-14 16:40 +0100

csiph-web