[PATCH] V4l: omap4iss: Clean up file handle in open() and release().

2016-11-30 Thread Shailendra Verma
Both functions initialize the file handle with v4l2_fh_init() and thus need to call clean up with v4l2_fh_exit() as appropriate. Signed-off-by: Shailendra Verma --- drivers/staging/media/omap4iss/iss_video.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/media/omap4iss

[PATCH] Staging: media: davinci_vpfe: - Fix for memory leak if decoder initialization fails.

2016-11-25 Thread Shailendra Verma
Fix to avoid possible memory leak if the decoder initialization got failed.Free the allocated memory for file handle object before return in case decoder initialization fails. Signed-off-by: Shailendra Verma --- drivers/staging/media/davinci_vpfe/vpfe_video.c |3 +++ 1 file changed, 3

[PATCH] Staging: Media: Omap4iss: Do not forget to call

2016-11-24 Thread Shailendra Verma
v4l2_fh_init is already done.So call the v4l2_fh_exit in error condition before returing from the function. Signed-off-by: Shailendra Verma --- drivers/staging/media/omap4iss/iss_video.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/omap4iss/iss_video.c b/drivers

[PATCH] Staging: media: davinci_vpfe: - Fix for memory leak if

2016-11-11 Thread Shailendra Verma
From: "Shailendra Verma" Fix to avoid possible memory leak if the decoder initialization got failed.Free the allocated memory for file handle object before return in case decoder initialization fails. Signed-off-by: Shailendra Verma --- drivers/staging/media/davinci_vpfe/vpfe_vide

[PATCH] Arch: arm: mm: Aligning the module end and Correction in

2016-11-10 Thread Shailendra Verma
From: "Shailendra Verma" The module end was not aligned as of module start and boundary check for module end is not proper.This out of bound value of module end can produce undesired results. Reported-by: Hillf Danton Signed-off-by: Shailendra Verma --- arch/arm/mm/pageatt

[PATCH] Staging: Media: Lirc - Improvement in code readability

2016-11-10 Thread Shailendra Verma
From: "Shailendra Verma" There is no need to call kfree() if memdup_user() fails, as no memory was allocated and the error in the error-valued pointer should be returned. Signed-off-by: Shailendra Verma --- drivers/staging/media/lirc/lirc_imon.c |5 ++--- drivers/staging/

[PATCH 2/2] Staging: Media: Lirc - Improvement in code readability

2016-11-10 Thread Shailendra Verma
From: "Shailendra Verma" There is no need to call kfree() if memdup_user() fails, as no memory was allocated and the error in the error-valued pointer should be returned. Signed-off-by: Shailendra Verma --- drivers/staging/media/lirc/lirc_imon.c |5 ++--- drivers/staging/

Staging: Media: Lirc - Fix possible ERR_PTR() dereferencing.

2016-09-20 Thread Shailendra Verma
This is of course wrong to call kfree() if memdup_user() fails, no memory was allocated and the error in the error-valued pointer should be returned. Reviewed-by: Ravikant Sharma Signed-off-by: Shailendra Verma --- drivers/staging/media/lirc/lirc_imon.c | 7 ++- drivers/staging/media/lirc

[PATCH] arch:arm:mm:Aligning the module end and Correction in

2015-11-16 Thread Shailendra Verma
From: Shailendra Verma The module end was not aligned as of module start and boundary check for module end is not proper.This out of bound value of module end can produce undesired results. Reported-by: Hillf Danton Signed-off-by: Shailendra Verma Reviewed-by: Ravikant Bijendra Sharma

[PATCH] arch:arm:mm:Aligning the module end address.

2015-11-16 Thread Shailendra Verma
From: Shailendra Verma The module end was not aligned as of module start, so aligning end also. Signed-off-by: Shailendra Verma Reviewed-by: Ravikant Bijendra Sharma --- linux-4.3-rc6/arch/arm64/mm/pageattr.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/linux

[PATCH] arch:arm:mm:Correction in the boundary check for module end address.

2015-11-09 Thread Shailendra Verma
From: Shailendra Verma The module end boundary check is not proper.The out of bound value of module end can produce undesired results. Signed-off-by: Shailendra Verma Reviewed-by: Ravikant Bijendra Sharma --- linux-4.3-rc6/arch/arm/mm/pageattr.c |2 +- 1 file changed, 1 insertion(+), 1

[PATCH] staging:nvec: fix typo in comment

2015-05-26 Thread Shailendra Verma
Fix spelling error in comment in function tegra_nvec_remove. Signed-off-by: Shailendra Verma --- drivers/staging/nvec/nvec.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 1bdc8d0..164634d 100644 --- a

[PATCH] staging:nvec:nvec - Fix for typo in comment to function tegra_nvec_remove().

2015-05-25 Thread Shailendra Verma
Signed-off-by: Shailendra Verma --- drivers/staging/nvec/nvec.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 1bdc8d0..164634d 100644 --- a/drivers/staging/nvec/nvec.c +++ b/drivers/staging/nvec/nvec.c

[PATCH] Staging:Android:ion - Fix for memory leak if ion device registration get failed.

2015-05-19 Thread Shailendra Verma
Fix to avoid possible memory leak if the ion device registration get failed.Free the allocated device creation memory before return in case the ion device registration get failed. Signed-off-by: Shailendra Verma --- drivers/staging/android/ion/ion.c |1 + 1 file changed, 1 insertion