Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c907a5bb
Commit
c907a5bb
authored
Feb 13, 2002
by
Greg Kroah-Hartman
Committed by
Paul Mackerras
Feb 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mem_flags added to usb_submit_urb().
This fixes usb drivers outside of the drivers/usb directory.
parent
1ce27f88
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
drivers/bluetooth/hci_usb.c
drivers/bluetooth/hci_usb.c
+4
-4
drivers/input/joystick/iforce.c
drivers/input/joystick/iforce.c
+3
-3
drivers/isdn/hisax/st5481_usb.c
drivers/isdn/hisax/st5481_usb.c
+3
-3
drivers/media/video/cpia_usb.c
drivers/media/video/cpia_usb.c
+2
-2
No files found.
drivers/bluetooth/hci_usb.c
View file @
c907a5bb
...
...
@@ -547,17 +547,17 @@ static void * hci_usb_probe(struct usb_device *udev, unsigned int ifnum, const s
husb
->
udev
=
udev
;
husb
->
bulk_out_ep_addr
=
bulk_out_ep
->
bEndpointAddress
;
if
(
!
(
husb
->
ctrl_urb
=
usb_alloc_urb
(
0
)))
{
if
(
!
(
husb
->
ctrl_urb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
)))
{
ERR
(
"Can't allocate: control URB"
);
goto
probe_error
;
}
if
(
!
(
husb
->
write_urb
=
usb_alloc_urb
(
0
)))
{
if
(
!
(
husb
->
write_urb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
)))
{
ERR
(
"Can't allocate: write URB"
);
goto
probe_error
;
}
if
(
!
(
husb
->
read_urb
=
usb_alloc_urb
(
0
)))
{
if
(
!
(
husb
->
read_urb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
)))
{
ERR
(
"Can't allocate: read URB"
);
goto
probe_error
;
}
...
...
@@ -578,7 +578,7 @@ static void * hci_usb_probe(struct usb_device *udev, unsigned int ifnum, const s
pipe
=
usb_rcvintpipe
(
udev
,
ep
->
bEndpointAddress
);
size
=
usb_maxpacket
(
udev
,
pipe
,
usb_pipeout
(
pipe
));
if
(
!
(
husb
->
intr_urb
=
usb_alloc_urb
(
0
)))
{
if
(
!
(
husb
->
intr_urb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
)))
{
ERR
(
"Can't allocate: interrupt URB"
);
goto
probe_error
;
}
...
...
drivers/input/joystick/iforce.c
View file @
c907a5bb
...
...
@@ -1024,18 +1024,18 @@ static void *iforce_usb_probe(struct usb_device *dev, unsigned int ifnum,
if
(
!
(
iforce
=
kmalloc
(
sizeof
(
struct
iforce
)
+
32
,
GFP_KERNEL
)))
return
NULL
;
memset
(
iforce
,
0
,
sizeof
(
struct
iforce
));
iforce
->
irq
=
usb_alloc_urb
(
0
);
iforce
->
irq
=
usb_alloc_urb
(
0
,
GFP_KERNEL
);
if
(
!
iforce
->
irq
)
{
kfree
(
iforce
);
return
NULL
;
}
iforce
->
out
=
usb_alloc_urb
(
0
);
iforce
->
out
=
usb_alloc_urb
(
0
,
GFP_KERNEL
);
if
(
!
iforce
->
out
)
{
usb_free_urb
(
iforce
->
irq
);
kfree
(
iforce
);
return
NULL
;
}
iforce
->
ctrl
=
usb_alloc_urb
(
0
);
iforce
->
ctrl
=
usb_alloc_urb
(
0
,
GFP_KERNEL
);
if
(
!
iforce
->
ctrl
)
{
usb_free_urb
(
iforce
->
out
);
usb_free_urb
(
iforce
->
irq
);
...
...
drivers/isdn/hisax/st5481_usb.c
View file @
c907a5bb
...
...
@@ -265,7 +265,7 @@ int __devinit st5481_setup_usb(struct st5481_adapter *adapter)
}
// Allocate URB for control endpoint
urb
=
usb_alloc_urb
(
0
);
urb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
);
if
(
!
urb
)
{
return
-
ENOMEM
;
}
...
...
@@ -280,7 +280,7 @@ int __devinit st5481_setup_usb(struct st5481_adapter *adapter)
fifo_init
(
&
ctrl
->
msg_fifo
.
f
,
ARRAY_SIZE
(
ctrl
->
msg_fifo
.
data
));
// Allocate URBs and buffers for interrupt endpoint
urb
=
usb_alloc_urb
(
0
);
urb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
);
if
(
!
urb
)
{
return
-
ENOMEM
;
}
...
...
@@ -416,7 +416,7 @@ st5481_setup_isocpipes(struct urb* urb[2], struct usb_device *dev,
for
(
j
=
0
;
j
<
2
;
j
++
)
{
retval
=
-
ENOMEM
;
urb
[
j
]
=
usb_alloc_urb
(
num_packet
s
);
urb
[
j
]
=
usb_alloc_urb
(
num_packet
,
GFP_KERNEL
);
if
(
!
urb
[
j
])
goto
err
;
...
...
drivers/media/video/cpia_usb.c
View file @
c907a5bb
...
...
@@ -201,7 +201,7 @@ static int cpia_usb_open(void *privdata)
ucpia
->
workbuff
=
ucpia
->
buffers
[
1
];
/* We double buffer the Iso lists */
urb
=
usb_alloc_urb
(
FRAMES_PER_DESC
);
urb
=
usb_alloc_urb
(
FRAMES_PER_DESC
,
GFP_KERNEL
);
if
(
!
urb
)
{
printk
(
KERN_ERR
"cpia_init_isoc: usb_alloc_urb 0
\n
"
);
retval
=
-
ENOMEM
;
...
...
@@ -222,7 +222,7 @@ static int cpia_usb_open(void *privdata)
urb
->
iso_frame_desc
[
fx
].
length
=
FRAME_SIZE_PER_DESC
;
}
urb
=
usb_alloc_urb
(
FRAMES_PER_DESC
);
urb
=
usb_alloc_urb
(
FRAMES_PER_DESC
,
GFP_KERNEL
);
if
(
!
urb
)
{
printk
(
KERN_ERR
"cpia_init_isoc: usb_alloc_urb 1
\n
"
);
retval
=
-
ENOMEM
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment