[lkml]   [2017]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] ovl: fix null pointer dereference on ofs allocation failure.
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 status in err.
> Detected by CoverityScan, CID#1461284 ("Dereference after null check")

Thanks, fixed.


 \ /
  Last update: 2017-11-10 09:55    [W:0.026 / U:5.040 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site