Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-16333 osc: page fault in osc_release_bounce_pages()
[fs/lustre-release.git]
/
lustre
/
osc
/
osc_request.c
diff --git
a/lustre/osc/osc_request.c
b/lustre/osc/osc_request.c
index
56e8b7d
..
08a286d
100644
(file)
--- a/
lustre/osc/osc_request.c
+++ b/
lustre/osc/osc_request.c
@@
-1461,6
+1461,9
@@
static inline void osc_release_bounce_pages(struct brw_page **pga,
struct page **pa = NULL;
int i, j = 0;
+ if (!pga[0])
+ return;
+
#ifdef CONFIG_LL_ENCRYPTION
if (PageChecked(pga[0]->pg)) {
OBD_ALLOC_PTR_ARRAY_LARGE(pa, page_count);