Re: [PATCH][media-next] media: davinci_vpfe: fix memory leaks of params

2018-05-02 Thread Dan Carpenter
On Wed, May 02, 2018 at 10:16:58AM +0100, Colin King wrote: > From: Colin Ian King > > There are memory leaks of params; when copy_to_user fails and also > the exit via the label 'error'. Fix this by kfree'ing params in > error exit path and jumping to this on the

[PATCH][media-next] media: davinci_vpfe: fix memory leaks of params

2018-05-02 Thread Colin King
From: Colin Ian King There are memory leaks of params; when copy_to_user fails and also the exit via the label 'error'. Fix this by kfree'ing params in error exit path and jumping to this on the copy_to_user failure path. Detected by CoverityScan, CID#1467966