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
0056af21
Commit
0056af21
authored
Apr 26, 2004
by
Daniele Bellucci
Committed by
Greg Kroah-Hartman
Apr 26, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: audits in usb_init()
there were some missing audits in usb_init()
parent
4742a859
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
7 deletions
+27
-7
drivers/usb/core/usb.c
drivers/usb/core/usb.c
+27
-7
No files found.
drivers/usb/core/usb.c
View file @
0056af21
...
...
@@ -1511,20 +1511,40 @@ int usb_disabled(void)
*/
static
int
__init
usb_init
(
void
)
{
int
retval
;
if
(
nousb
)
{
pr_info
(
"%s: USB support disabled
\n
"
,
usbcore_name
);
return
0
;
}
bus_register
(
&
usb_bus_type
);
retval
=
bus_register
(
&
usb_bus_type
);
if
(
retval
)
goto
out
;
usb_host_init
();
usb_major_init
();
usbfs_init
();
usb_hub_init
();
driver_register
(
&
usb_generic_driver
);
retval
=
usb_major_init
();
if
(
retval
)
goto
major_init_failed
;
retval
=
usbfs_init
();
if
(
retval
)
goto
fs_init_failed
;
retval
=
usb_hub_init
();
if
(
retval
)
goto
hub_init_failed
;
retval
=
driver_register
(
&
usb_generic_driver
);
if
(
!
retval
)
goto
out
;
return
0
;
usb_hub_cleanup
();
hub_init_failed:
usbfs_cleanup
();
fs_init_failed:
usb_major_cleanup
();
major_init_failed:
usb_host_cleanup
();
bus_unregister
(
&
usb_bus_type
);
out:
return
retval
;
}
/*
...
...
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