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
6c7a6731
Commit
6c7a6731
authored
Apr 17, 2003
by
James Bottomley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix megaraid module ownership
Move to using the .owner field of fops
parent
676ae973
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
13 deletions
+1
-13
drivers/scsi/megaraid.c
drivers/scsi/megaraid.c
+1
-12
drivers/scsi/megaraid.h
drivers/scsi/megaraid.h
+0
-1
No files found.
drivers/scsi/megaraid.c
View file @
6c7a6731
...
...
@@ -88,9 +88,9 @@ static struct mega_hbas mega_hbas[MAX_CONTROLLERS];
* The File Operations structure for the serial/ioctl interface of the driver
*/
static
struct
file_operations
megadev_fops
=
{
.
owner
=
THIS_MODULE
,
.
ioctl
=
megadev_ioctl
,
.
open
=
megadev_open
,
.
release
=
megadev_close
,
};
/*
...
...
@@ -4040,9 +4040,6 @@ megadev_open (struct inode *inode, struct file *filep)
*/
if
(
!
capable
(
CAP_SYS_ADMIN
)
)
return
-
EACCES
;
if
(
!
try_module_get
(
THIS_MODULE
))
{
return
-
ENXIO
;
}
return
0
;
}
...
...
@@ -4640,14 +4637,6 @@ mega_n_to_m(void *arg, megacmd_t *mc)
}
static
int
megadev_close
(
struct
inode
*
inode
,
struct
file
*
filep
)
{
module_put
(
THIS_MODULE
);
return
0
;
}
/*
* MEGARAID 'FW' commands.
*/
...
...
drivers/scsi/megaraid.h
View file @
6c7a6731
...
...
@@ -1054,7 +1054,6 @@ static int megadev_ioctl (struct inode *, struct file *, unsigned int,
unsigned
long
);
static
int
mega_m_to_n
(
void
*
,
nitioctl_t
*
);
static
int
mega_n_to_m
(
void
*
,
megacmd_t
*
);
static
int
megadev_close
(
struct
inode
*
,
struct
file
*
);
static
int
mega_init_scb
(
adapter_t
*
);
...
...
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