|
@@ -526,7 +526,8 @@ EXPORT_SYMBOL_GPL(nfs_pgio_header_free);
|
|
*/
|
|
*/
|
|
void nfs_pgio_data_destroy(struct nfs_pgio_header *hdr)
|
|
void nfs_pgio_data_destroy(struct nfs_pgio_header *hdr)
|
|
{
|
|
{
|
|
- put_nfs_open_context(hdr->args.context);
|
|
|
|
|
|
+ if (hdr->args.context)
|
|
|
|
+ put_nfs_open_context(hdr->args.context);
|
|
if (hdr->page_array.pagevec != hdr->page_array.page_array)
|
|
if (hdr->page_array.pagevec != hdr->page_array.page_array)
|
|
kfree(hdr->page_array.pagevec);
|
|
kfree(hdr->page_array.pagevec);
|
|
}
|
|
}
|