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
eed9e9fa
Commit
eed9e9fa
authored
Sep 19, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drivers/ieee1394/dv1394.c: Protect more devfs stuff.
parent
f618094e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
drivers/ieee1394/dv1394.c
drivers/ieee1394/dv1394.c
+10
-9
No files found.
drivers/ieee1394/dv1394.c
View file @
eed9e9fa
...
@@ -170,15 +170,6 @@ static spinlock_t dv1394_cards_lock = SPIN_LOCK_UNLOCKED;
...
@@ -170,15 +170,6 @@ static spinlock_t dv1394_cards_lock = SPIN_LOCK_UNLOCKED;
static
struct
hpsb_highlevel
*
hl_handle
;
/* = NULL; */
static
struct
hpsb_highlevel
*
hl_handle
;
/* = NULL; */
static
LIST_HEAD
(
dv1394_devfs
);
struct
dv1394_devfs_entry
{
struct
list_head
list
;
devfs_handle_t
devfs
;
char
name
[
32
];
struct
dv1394_devfs_entry
*
parent
;
};
static
spinlock_t
dv1394_devfs_lock
=
SPIN_LOCK_UNLOCKED
;
/* translate from a struct file* to the corresponding struct video_card* */
/* translate from a struct file* to the corresponding struct video_card* */
static
inline
struct
video_card
*
file_to_video_card
(
struct
file
*
file
)
static
inline
struct
video_card
*
file_to_video_card
(
struct
file
*
file
)
...
@@ -2565,6 +2556,16 @@ static struct file_operations dv1394_fops=
...
@@ -2565,6 +2556,16 @@ static struct file_operations dv1394_fops=
/*** DEVFS HELPERS *********************************************************/
/*** DEVFS HELPERS *********************************************************/
#ifdef CONFIG_DEVFS_FS
#ifdef CONFIG_DEVFS_FS
static
LIST_HEAD
(
dv1394_devfs
);
struct
dv1394_devfs_entry
{
struct
list_head
list
;
devfs_handle_t
devfs
;
char
name
[
32
];
struct
dv1394_devfs_entry
*
parent
;
};
static
spinlock_t
dv1394_devfs_lock
=
SPIN_LOCK_UNLOCKED
;
struct
dv1394_devfs_entry
*
struct
dv1394_devfs_entry
*
dv1394_devfs_find
(
char
*
name
)
dv1394_devfs_find
(
char
*
name
)
{
{
...
...
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