Re: [PATCH] ovl: fix null pointer dereference on ofs allocation failure.

2017-11-10 Thread Miklos Szeredi
On Thu, Nov 9, 2017 at 6:47 PM, Colin King wrote: > From: Colin Ian King > > The current error exit path when ofs fails to allocate jumps > to clean-up code that calls ovl_free_fs resulting in a null pointer > dereference on the null ovl

Re: [PATCH] ovl: fix null pointer dereference on ofs allocation failure.

2017-11-10 Thread Miklos Szeredi
On Thu, Nov 9, 2017 at 6:47 PM, Colin King wrote: > From: Colin Ian King > > The current error exit path when ofs fails to allocate jumps > to clean-up code that calls ovl_free_fs resulting in a null pointer > dereference on the null ovl pointer. Fix this by simply returning > with the -ENOMEM

[PATCH] ovl: fix null pointer dereference on ofs allocation failure.

2017-11-09 Thread Colin King
From: Colin Ian King The current error exit path when ofs fails to allocate jumps to clean-up code that calls ovl_free_fs resulting in a null pointer dereference on the null ovl pointer. Fix this by simply returning with the -ENOMEM status in err. Detected by

[PATCH] ovl: fix null pointer dereference on ofs allocation failure.

2017-11-09 Thread Colin King
From: Colin Ian King The current error exit path when ofs fails to allocate jumps to clean-up code that calls ovl_free_fs resulting in a null pointer dereference on the null ovl pointer. Fix this by simply returning with the -ENOMEM status in err. Detected by CoverityScan, CID#1461284