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
a938fd42
Commit
a938fd42
authored
May 29, 2003
by
Arnaldo Carvalho de Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
o drivers/usb/media/ibmcam: remove MOD_{INC,DEC}_USE_COUNT
parent
2df3f7db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
drivers/usb/media/ibmcam.c
drivers/usb/media/ibmcam.c
+0
-15
No files found.
drivers/usb/media/ibmcam.c
View file @
a938fd42
...
@@ -12,18 +12,6 @@
...
@@ -12,18 +12,6 @@
* 5/24/00 Removed optional (and unnecessary) locking of the driver while
* 5/24/00 Removed optional (and unnecessary) locking of the driver while
* the device remains plugged in. Corrected race conditions in ibmcam_open
* the device remains plugged in. Corrected race conditions in ibmcam_open
* and ibmcam_probe() routines using this as a guideline:
* and ibmcam_probe() routines using this as a guideline:
*
* (2) The big kernel lock is automatically released when a process sleeps
* in the kernel and is automatically reacquired on reschedule if the
* process had the lock originally. Any code that can be compiled as
* a module and is entered with the big kernel lock held *MUST*
* increment the use count to activate the indirect module protection
* before doing anything that might sleep.
*
* In practice, this means that all routines that live in modules and
* are invoked under the big kernel lock should do MOD_INC_USE_COUNT
* as their very first action. And all failure paths from that
* routine must do MOD_DEC_USE_COUNT before returning.
*/
*/
#include <linux/kernel.h>
#include <linux/kernel.h>
...
@@ -3865,8 +3853,6 @@ static int ibmcam_probe(struct usb_interface *intf, const struct usb_device_id *
...
@@ -3865,8 +3853,6 @@ static int ibmcam_probe(struct usb_interface *intf, const struct usb_device_id *
return
-
ENODEV
;
return
-
ENODEV
;
}
}
/* Code below may sleep, need to lock module while we are here */
MOD_INC_USE_COUNT
;
uvd
=
usbvideo_AllocateDevice
(
cams
);
uvd
=
usbvideo_AllocateDevice
(
cams
);
if
(
uvd
!=
NULL
)
{
if
(
uvd
!=
NULL
)
{
/* Here uvd is a fully allocated uvd object */
/* Here uvd is a fully allocated uvd object */
...
@@ -3896,7 +3882,6 @@ static int ibmcam_probe(struct usb_interface *intf, const struct usb_device_id *
...
@@ -3896,7 +3882,6 @@ static int ibmcam_probe(struct usb_interface *intf, const struct usb_device_id *
uvd
=
NULL
;
uvd
=
NULL
;
}
}
}
}
MOD_DEC_USE_COUNT
;
usb_set_intfdata
(
intf
,
uvd
);
usb_set_intfdata
(
intf
,
uvd
);
return
0
;
return
0
;
}
}
...
...
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