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
Kirill Smelkov
linux
Commits
1ce27f88
Commit
1ce27f88
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
added mem_flags to usb_submit_urb().
Fixes drivers/usb/storage. Patch done by Oliver Neukum.
parent
dd20f0da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/usb/storage/usb.c
drivers/usb/storage/usb.c
+3
-3
No files found.
drivers/usb/storage/usb.c
View file @
1ce27f88
...
@@ -515,7 +515,7 @@ static int usb_stor_allocate_irq(struct us_data *ss)
...
@@ -515,7 +515,7 @@ static int usb_stor_allocate_irq(struct us_data *ss)
down
(
&
(
ss
->
irq_urb_sem
));
down
(
&
(
ss
->
irq_urb_sem
));
/* allocate the URB */
/* allocate the URB */
ss
->
irq_urb
=
usb_alloc_urb
(
0
);
ss
->
irq_urb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
);
if
(
!
ss
->
irq_urb
)
{
if
(
!
ss
->
irq_urb
)
{
up
(
&
(
ss
->
irq_urb_sem
));
up
(
&
(
ss
->
irq_urb_sem
));
US_DEBUGP
(
"couldn't allocate interrupt URB"
);
US_DEBUGP
(
"couldn't allocate interrupt URB"
);
...
@@ -730,7 +730,7 @@ static void * storage_probe(struct usb_device *dev, unsigned int ifnum,
...
@@ -730,7 +730,7 @@ static void * storage_probe(struct usb_device *dev, unsigned int ifnum,
}
}
/* allocate the URB we're going to use */
/* allocate the URB we're going to use */
ss
->
current_urb
=
usb_alloc_urb
(
0
);
ss
->
current_urb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
);
if
(
!
ss
->
current_urb
)
{
if
(
!
ss
->
current_urb
)
{
usb_dec_dev_use
(
dev
);
usb_dec_dev_use
(
dev
);
return
NULL
;
return
NULL
;
...
@@ -756,7 +756,7 @@ static void * storage_probe(struct usb_device *dev, unsigned int ifnum,
...
@@ -756,7 +756,7 @@ static void * storage_probe(struct usb_device *dev, unsigned int ifnum,
memset
(
ss
,
0
,
sizeof
(
struct
us_data
));
memset
(
ss
,
0
,
sizeof
(
struct
us_data
));
/* allocate the URB we're going to use */
/* allocate the URB we're going to use */
ss
->
current_urb
=
usb_alloc_urb
(
0
);
ss
->
current_urb
=
usb_alloc_urb
(
0
,
GFP_KERNEL
);
if
(
!
ss
->
current_urb
)
{
if
(
!
ss
->
current_urb
)
{
kfree
(
ss
);
kfree
(
ss
);
usb_dec_dev_use
(
dev
);
usb_dec_dev_use
(
dev
);
...
...
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