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
0699ee7a
Commit
0699ee7a
authored
Jun 11, 2015
by
Doug Ledford
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-4.2-misc' into k.o/for-4.2
parents
9247a8eb
4dc54442
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
11 deletions
+5
-11
drivers/infiniband/hw/mthca/mthca_profile.c
drivers/infiniband/hw/mthca/mthca_profile.c
+2
-6
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
+0
-1
drivers/infiniband/hw/usnic/usnic_uiom.c
drivers/infiniband/hw/usnic/usnic_uiom.c
+3
-4
No files found.
drivers/infiniband/hw/mthca/mthca_profile.c
View file @
0699ee7a
...
...
@@ -77,7 +77,6 @@ s64 mthca_make_profile(struct mthca_dev *dev,
u64
mem_base
,
mem_avail
;
s64
total_size
=
0
;
struct
mthca_resource
*
profile
;
struct
mthca_resource
tmp
;
int
i
,
j
;
profile
=
kzalloc
(
MTHCA_RES_NUM
*
sizeof
*
profile
,
GFP_KERNEL
);
...
...
@@ -136,11 +135,8 @@ s64 mthca_make_profile(struct mthca_dev *dev,
*/
for
(
i
=
MTHCA_RES_NUM
;
i
>
0
;
--
i
)
for
(
j
=
1
;
j
<
i
;
++
j
)
{
if
(
profile
[
j
].
size
>
profile
[
j
-
1
].
size
)
{
tmp
=
profile
[
j
];
profile
[
j
]
=
profile
[
j
-
1
];
profile
[
j
-
1
]
=
tmp
;
}
if
(
profile
[
j
].
size
>
profile
[
j
-
1
].
size
)
swap
(
profile
[
j
],
profile
[
j
-
1
]);
}
for
(
i
=
0
;
i
<
MTHCA_RES_NUM
;
++
i
)
{
...
...
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
View file @
0699ee7a
...
...
@@ -684,7 +684,6 @@ struct ib_pd *ocrdma_alloc_pd(struct ib_device *ibdev,
ocrdma_release_ucontext_pd
(
uctx
);
}
else
{
status
=
_ocrdma_dealloc_pd
(
dev
,
pd
);
kfree
(
pd
);
}
exit:
return
ERR_PTR
(
status
);
...
...
drivers/infiniband/hw/usnic/usnic_uiom.c
View file @
0699ee7a
...
...
@@ -472,11 +472,10 @@ struct usnic_uiom_pd *usnic_uiom_alloc_pd(void)
return
ERR_PTR
(
-
ENOMEM
);
pd
->
domain
=
domain
=
iommu_domain_alloc
(
&
pci_bus_type
);
if
(
IS_ERR_OR_NULL
(
domain
))
{
usnic_err
(
"Failed to allocate IOMMU domain with err %ld
\n
"
,
PTR_ERR
(
pd
->
domain
));
if
(
!
domain
)
{
usnic_err
(
"Failed to allocate IOMMU domain"
);
kfree
(
pd
);
return
ERR_PTR
(
domain
?
PTR_ERR
(
domain
)
:
-
ENOMEM
);
return
ERR_PTR
(
-
ENOMEM
);
}
iommu_set_fault_handler
(
pd
->
domain
,
usnic_uiom_dma_fault
,
NULL
);
...
...
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