Commit c58d5359 authored by Steve French's avatar Steve French Committed by Steve French

Missing spin_unlock in error path and extraneous kunmap in cifs_writepages

parent fded59fb
......@@ -598,7 +598,6 @@ cifs_partialpagewrite(struct page *page,unsigned from, unsigned to)
/* figure out which file struct to use
if (file->private_data == NULL) {
kunmap(page);
FreeXid(xid);
return -EBADF;
}
......@@ -945,6 +944,7 @@ cifs_readpages(struct file *file, struct address_space *mapping,
for(i = 0;i<num_pages;) {
spin_lock(&mapping->page_lock);
if(list_empty(page_list)) {
spin_unlock(&mapping->page_lock);
break;
}
page = list_entry(page_list->prev, struct page, list);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment