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
963497c1
Commit
963497c1
authored
Sep 05, 2006
by
Lebedev, Vladimir P
Committed by
Len Brown
Oct 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACPI: sbs: check for NULL device pointer
Signed-off-by:
Len Brown
<
len.brown@intel.com
>
parent
b4bd8c66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
drivers/acpi/sbs.c
drivers/acpi/sbs.c
+8
-2
No files found.
drivers/acpi/sbs.c
View file @
963497c1
...
...
@@ -1685,10 +1685,16 @@ static int acpi_sbs_add(struct acpi_device *device)
int
acpi_sbs_remove
(
struct
acpi_device
*
device
,
int
type
)
{
struct
acpi_sbs
*
sbs
=
(
struct
acpi_sbs
*
)
acpi_driver_data
(
device
)
;
struct
acpi_sbs
*
sbs
=
NULL
;
int
id
;
if
(
!
device
||
!
sbs
)
{
if
(
!
device
)
{
return
-
EINVAL
;
}
sbs
=
(
struct
acpi_sbs
*
)
acpi_driver_data
(
device
);
if
(
!
sbs
)
{
return
-
EINVAL
;
}
...
...
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