Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

exofs: Fix bio leak in error handling path (sync read)

When failing a read request in the sync path, called from
write_begin, I forgot to free the allocated bio, fix it.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>

+3
+3
fs/exofs/inode.c
··· 295 295 err: 296 296 if (!is_sync) 297 297 _unlock_pcol_pages(pcol, ret, READ); 298 + else /* Pages unlocked by caller in sync mode only free bio */ 299 + pcol_free(pcol); 300 + 298 301 kfree(pcol_copy); 299 302 if (or) 300 303 osd_end_request(or);