Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91726
b: refs/heads/master
c: 032d8d9
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Jens Axboe committed Apr 21, 2008
1 parent 3950d03 commit 2802a66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3c3f4e012ab3471e8bd19220ed897ae9700e5fdd
refs/heads/master: 032d8d90ba23e1770604bbb1102ec77f5aa8ae44
2 changes: 2 additions & 0 deletions trunk/drivers/cdrom/cdrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -3427,6 +3427,7 @@ static void cdrom_update_settings(void)
{
struct cdrom_device_info *cdi;

mutex_lock(&cdrom_mutex);
for (cdi = topCdromPtr; cdi != NULL; cdi = cdi->next) {
if (autoclose && CDROM_CAN(CDC_CLOSE_TRAY))
cdi->options |= CDO_AUTO_CLOSE;
Expand All @@ -3445,6 +3446,7 @@ static void cdrom_update_settings(void)
else
cdi->options &= ~CDO_CHECK_TYPE;
}
mutex_unlock(&cdrom_mutex);
}

static int cdrom_sysctl_handler(ctl_table *ctl, int write, struct file * filp,
Expand Down

0 comments on commit 2802a66

Please sign in to comment.