Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1061
b: refs/heads/master
c: 3a73e8c
h: refs/heads/master
i:
  1059: 1cad132
v: v3
  • Loading branch information
Nate Dailey authored and James Bottomley committed Apr 21, 2005
1 parent 652940d commit 73b7d9d
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 0bdcd78ea2342ad1a9c79cac99eefcfd0b3f1c2b
refs/heads/master: 3a73e8c7715cdf53c24b602bfca15ec54d7c989b
3 changes: 3 additions & 0 deletions trunk/drivers/scsi/sr_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ int sr_get_mcn(struct cdrom_device_info *cdi, struct cdrom_mcn *mcn)
char *buffer = kmalloc(32, GFP_KERNEL | SR_GFP_DMA(cd));
int result;

if (!buffer)
return -ENOMEM;

memset(&cgc, 0, sizeof(struct packet_command));
cgc.cmd[0] = GPCMD_READ_SUBCHANNEL;
cgc.cmd[2] = 0x40; /* I do want the subchannel info */
Expand Down

0 comments on commit 73b7d9d

Please sign in to comment.