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
9b6846ce
Commit
9b6846ce
authored
Aug 05, 2013
by
Chris Metcalf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tile PCI DMA: handle a NULL dev argument properly
Signed-off-by:
Chris Metcalf
<
cmetcalf@tilera.com
>
parent
cf89c426
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
arch/tile/kernel/pci-dma.c
arch/tile/kernel/pci-dma.c
+3
-2
No files found.
arch/tile/kernel/pci-dma.c
View file @
9b6846ce
...
@@ -36,8 +36,9 @@ static void *tile_dma_alloc_coherent(struct device *dev, size_t size,
...
@@ -36,8 +36,9 @@ static void *tile_dma_alloc_coherent(struct device *dev, size_t size,
dma_addr_t
*
dma_handle
,
gfp_t
gfp
,
dma_addr_t
*
dma_handle
,
gfp_t
gfp
,
struct
dma_attrs
*
attrs
)
struct
dma_attrs
*
attrs
)
{
{
u64
dma_mask
=
dev
->
coherent_dma_mask
?:
DMA_BIT_MASK
(
32
);
u64
dma_mask
=
(
dev
&&
dev
->
coherent_dma_mask
)
?
int
node
=
dev_to_node
(
dev
);
dev
->
coherent_dma_mask
:
DMA_BIT_MASK
(
32
);
int
node
=
dev
?
dev_to_node
(
dev
)
:
0
;
int
order
=
get_order
(
size
);
int
order
=
get_order
(
size
);
struct
page
*
pg
;
struct
page
*
pg
;
dma_addr_t
addr
;
dma_addr_t
addr
;
...
...
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