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
5450c6c1
Commit
5450c6c1
authored
Apr 17, 2004
by
Andrew Morton
Committed by
Linus Torvalds
Apr 17, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] aty128fb dereference before null check
From: Dave Jones <davej@redhat.com>
parent
25aa73df
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
drivers/video/aty/aty128fb.c
drivers/video/aty/aty128fb.c
+3
-1
No files found.
drivers/video/aty/aty128fb.c
View file @
5450c6c1
...
@@ -1998,11 +1998,13 @@ static int __init aty128_probe(struct pci_dev *pdev, const struct pci_device_id
...
@@ -1998,11 +1998,13 @@ static int __init aty128_probe(struct pci_dev *pdev, const struct pci_device_id
static
void
__devexit
aty128_remove
(
struct
pci_dev
*
pdev
)
static
void
__devexit
aty128_remove
(
struct
pci_dev
*
pdev
)
{
{
struct
fb_info
*
info
=
pci_get_drvdata
(
pdev
);
struct
fb_info
*
info
=
pci_get_drvdata
(
pdev
);
struct
aty128fb_par
*
par
=
info
->
par
;
struct
aty128fb_par
*
par
;
if
(
!
info
)
if
(
!
info
)
return
;
return
;
par
=
info
->
par
;
unregister_framebuffer
(
info
);
unregister_framebuffer
(
info
);
#ifdef CONFIG_MTRR
#ifdef CONFIG_MTRR
if
(
par
->
mtrr
.
vram_valid
)
if
(
par
->
mtrr
.
vram_valid
)
...
...
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