Commit 306ef798 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: usb-midi driver: fixed memory flag, as pointed out by Oliver Neukum

parent 50aaaba8
...@@ -896,7 +896,7 @@ static int usb_midi_open(struct inode *inode, struct file *file) ...@@ -896,7 +896,7 @@ static int usb_midi_open(struct inode *inode, struct file *file)
/* urb->dev must be reinitialized on 2.4.x kernels */ /* urb->dev must be reinitialized on 2.4.x kernels */
m->min.ep->urb->dev = m->min.ep->usbdev; m->min.ep->urb->dev = m->min.ep->usbdev;
if ( usb_submit_urb(m->min.ep->urb, GFP_KERNEL) ) { if ( usb_submit_urb(m->min.ep->urb, GFP_ATOMIC) ) {
printk(KERN_ERR "usbmidi: Cannot submit urb for MIDI-IN\n"); printk(KERN_ERR "usbmidi: Cannot submit urb for MIDI-IN\n");
} }
m->min.ep->urbSubmitted = 1; m->min.ep->urbSubmitted = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment