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
46b34886
Commit
46b34886
authored
Sep 22, 2011
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: fix oops if i2c bus not found in nouveau_i2c_identify()
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
bde4889a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
drivers/gpu/drm/nouveau/nouveau_i2c.c
drivers/gpu/drm/nouveau/nouveau_i2c.c
+1
-1
No files found.
drivers/gpu/drm/nouveau/nouveau_i2c.c
View file @
46b34886
...
@@ -333,7 +333,7 @@ nouveau_i2c_identify(struct drm_device *dev, const char *what,
...
@@ -333,7 +333,7 @@ nouveau_i2c_identify(struct drm_device *dev, const char *what,
NV_DEBUG
(
dev
,
"Probing %ss on I2C bus: %d
\n
"
,
what
,
index
);
NV_DEBUG
(
dev
,
"Probing %ss on I2C bus: %d
\n
"
,
what
,
index
);
for
(
i
=
0
;
info
[
i
].
addr
;
i
++
)
{
for
(
i
=
0
;
i
2c
&&
i
nfo
[
i
].
addr
;
i
++
)
{
if
(
nouveau_probe_i2c_addr
(
i2c
,
info
[
i
].
addr
)
&&
if
(
nouveau_probe_i2c_addr
(
i2c
,
info
[
i
].
addr
)
&&
(
!
match
||
match
(
i2c
,
&
info
[
i
])))
{
(
!
match
||
match
(
i2c
,
&
info
[
i
])))
{
NV_INFO
(
dev
,
"Detected %s: %s
\n
"
,
what
,
info
[
i
].
type
);
NV_INFO
(
dev
,
"Detected %s: %s
\n
"
,
what
,
info
[
i
].
type
);
...
...
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