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
2685d137
Commit
2685d137
authored
May 18, 2003
by
Andrew Morton
Committed by
Linus Torvalds
May 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] DAC960 oops fix
ioctl_by_bdev() passes in a NULL file*, so we had better not dereference it.
parent
c6c9afeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/block/DAC960.c
drivers/block/DAC960.c
+1
-1
No files found.
drivers/block/DAC960.c
View file @
2685d137
...
@@ -102,7 +102,7 @@ static int DAC960_ioctl(struct inode *inode, struct file *file,
...
@@ -102,7 +102,7 @@ static int DAC960_ioctl(struct inode *inode, struct file *file,
int
drive_nr
=
(
int
)
disk
->
private_data
;
int
drive_nr
=
(
int
)
disk
->
private_data
;
struct
hd_geometry
g
,
*
loc
=
(
struct
hd_geometry
*
)
arg
;
struct
hd_geometry
g
,
*
loc
=
(
struct
hd_geometry
*
)
arg
;
if
(
file
->
f_flags
&
O_NONBLOCK
)
if
(
file
&&
(
file
->
f_flags
&
O_NONBLOCK
)
)
return
DAC960_UserIOCTL
(
inode
,
file
,
cmd
,
arg
);
return
DAC960_UserIOCTL
(
inode
,
file
,
cmd
,
arg
);
if
(
cmd
!=
HDIO_GETGEO
||
!
loc
)
if
(
cmd
!=
HDIO_GETGEO
||
!
loc
)
...
...
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