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
f364acc5
Commit
f364acc5
authored
Jun 26, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PCMCIA] Fix bogus align value
0 is not a valid alignment value for allocate_resource()
parent
6982faf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/pcmcia/rsrc_mgr.c
drivers/pcmcia/rsrc_mgr.c
+3
-3
No files found.
drivers/pcmcia/rsrc_mgr.c
View file @
f364acc5
...
@@ -653,8 +653,8 @@ struct resource *find_io_region(unsigned long base, int num,
...
@@ -653,8 +653,8 @@ struct resource *find_io_region(unsigned long base, int num,
min
,
0
,
pcmcia_align
,
&
data
);
min
,
0
,
pcmcia_align
,
&
data
);
}
else
}
else
#endif
#endif
ret
=
allocate_resource
(
&
ioport_resource
,
res
,
num
,
min
,
~
0UL
,
0
,
ret
=
allocate_resource
(
&
ioport_resource
,
res
,
num
,
min
,
~
0UL
,
pcmcia_align
,
&
data
);
1
,
pcmcia_align
,
&
data
);
up
(
&
rsrc_sem
);
up
(
&
rsrc_sem
);
if
(
ret
!=
0
)
{
if
(
ret
!=
0
)
{
...
@@ -696,7 +696,7 @@ struct resource *find_mem_region(u_long base, u_long num, u_long align,
...
@@ -696,7 +696,7 @@ struct resource *find_mem_region(u_long base, u_long num, u_long align,
}
else
}
else
#endif
#endif
ret
=
allocate_resource
(
&
iomem_resource
,
res
,
num
,
min
,
ret
=
allocate_resource
(
&
iomem_resource
,
res
,
num
,
min
,
max
,
0
,
pcmcia_align
,
&
data
);
max
,
1
,
pcmcia_align
,
&
data
);
up
(
&
rsrc_sem
);
up
(
&
rsrc_sem
);
if
(
ret
==
0
||
low
)
if
(
ret
==
0
||
low
)
break
;
break
;
...
...
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