Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22034
b: refs/heads/master
c: 9ee884c
h: refs/heads/master
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Mar 20, 2006
1 parent e9ad844 commit f1a3bf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 06d694748b5173d972d7e4169173adad62ee67c0
refs/heads/master: 9ee884cc89dc339276c719ab4ff53913ac03d083
5 changes: 2 additions & 3 deletions trunk/drivers/usb/misc/sisusbvga/sisusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3188,7 +3188,7 @@ sisusb_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
break;

default:
retval = -EINVAL;
retval = -ENOTTY;
break;
}

Expand Down Expand Up @@ -3251,12 +3251,11 @@ static int sisusb_probe(struct usb_interface *intf,
dev->devnum);

/* Allocate memory for our private */
if (!(sisusb = kmalloc(sizeof(*sisusb), GFP_KERNEL))) {
if (!(sisusb = kzalloc(sizeof(*sisusb), GFP_KERNEL))) {
printk(KERN_ERR
"sisusb: Failed to allocate memory for private data\n");
return -ENOMEM;
}
memset(sisusb, 0, sizeof(*sisusb));
kref_init(&sisusb->kref);

init_MUTEX(&(sisusb->lock));
Expand Down

0 comments on commit f1a3bf2

Please sign in to comment.