[PATCH] media: staging: greybus: Release memory obtained by kasprintf

2017-09-21 Thread Arvind Yadav
Free memory region, if gb_lights_channel_config is not successful. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/staging/greybus/light.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/staging/greybus/light.c b/drivers/staging/g

[PATCH] media: staging: greybus: Release memory obtained by kasprintf

2017-09-21 Thread Arvind Yadav
Free memory region, if gb_lights_channel_config is not successful. Signed-off-by: Arvind Yadav --- drivers/staging/greybus/light.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/staging/greybus/light.c b/drivers/staging/greybus/light.c index 3f4148c

[PATCH 2/3] EDAC: sb_edac: Handle return value of kasprintf

2017-09-21 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/edac/sb_edac.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index dc05916..2b9e831 100644 --- a/d

[PATCH 1/3] EDAC: i7core: Handle return value of kasprintf

2017-09-21 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/edac/i7core_edac.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index c16c3b9..054f361

[PATCH 2/3] EDAC: sb_edac: Handle return value of kasprintf

2017-09-21 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/edac/sb_edac.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index dc05916..2b9e831 100644 --- a/drivers/edac/sb_edac.c +++ b/drivers

[PATCH 1/3] EDAC: i7core: Handle return value of kasprintf

2017-09-21 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/edac/i7core_edac.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index c16c3b9..054f361 100644 --- a/drivers/edac

[PATCH 3/3] EDAC: skx_edac: Handle return value of kasprintf

2017-09-21 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/edac/skx_edac.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/edac/skx_edac.c b/drivers/edac/skx_edac.c index 16dea97..a7b25bb

[PATCH 3/3] EDAC: skx_edac: Handle return value of kasprintf

2017-09-21 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/edac/skx_edac.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/edac/skx_edac.c b/drivers/edac/skx_edac.c index 16dea97..a7b25bb 100644 --- a/drivers/edac/skx_edac.c +++ b

[PATCH 0/3] EDAC: Handle return value of kasprintf

2017-09-21 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Arvind Yadav (3): [PATCH 1/3] EDAC: i7core: Handle return value of kasprintf [PATCH 2/3] EDAC: sb_edac: Handle return value of kasprintf [PATCH 3/3] EDAC: skx_edac: Handle return value of kasprintf drivers/edac/i7core_edac.c

[PATCH 0/3] EDAC: Handle return value of kasprintf

2017-09-21 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Arvind Yadav (3): [PATCH 1/3] EDAC: i7core: Handle return value of kasprintf [PATCH 2/3] EDAC: sb_edac: Handle return value of kasprintf [PATCH 3/3] EDAC: skx_edac: Handle return value of kasprintf drivers/edac/i7core_edac.c

[PATCH v2] PM / OPP: Use snprintf to avoid kasprintf and kfree

2017-09-20 Thread Arvind Yadav
Use snprintf to avoid unnecessary initializations, avoid calling kfree. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2: Remove kasprintf instead of error checking. drivers/base/power/opp/debugfs.c | 7 +++ 1 file changed, 3 insertions(+), 4 del

[PATCH v2] PM / OPP: Use snprintf to avoid kasprintf and kfree

2017-09-20 Thread Arvind Yadav
Use snprintf to avoid unnecessary initializations, avoid calling kfree. Signed-off-by: Arvind Yadav --- changes in v2: Remove kasprintf instead of error checking. drivers/base/power/opp/debugfs.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers

[PATCH v2 2/3] ASoC: fsl-asoc-card: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2: Set return 'ret' to -ENOMEM. sound/soc/fsl/fsl-asoc-card.c | 4 1 file changed, 4 insertions(+) diff --git a/sound/soc/fsl/fs

[PATCH v2 2/3] ASoC: fsl-asoc-card: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2: Set return 'ret' to -ENOMEM. sound/soc/fsl/fsl-asoc-card.c | 4 1 file changed, 4 insertions(+) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl

[PATCH v2 1/2] gpio: brcmstb: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2 : Set return 'err' to -ENOMEM. drivers/gpio/gpio-brcmstb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpi

[PATCH v2 1/2] gpio: brcmstb: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2 : Set return 'err' to -ENOMEM. drivers/gpio/gpio-brcmstb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpio/gpio-brcmstb.c b/drivers/gpio/gpio

[PATCH 2/3] ASoC: fsl-asoc-card: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- sound/soc/fsl/fsl-asoc-card.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index 2db4d0c..8

[PATCH 2/3] ASoC: fsl-asoc-card: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- sound/soc/fsl/fsl-asoc-card.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index 2db4d0c..86f240b 100644 --- a/sound/soc/fsl

[PATCH 3/3] ASoC: omap-hdmi-audio: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- sound/soc/omap/omap-hdmi-audio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/omap/omap-hdmi-audio.c b/sound/soc/omap/omap-hdmi-audio.c index 3

[PATCH 3/3] ASoC: omap-hdmi-audio: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- sound/soc/omap/omap-hdmi-audio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/omap/omap-hdmi-audio.c b/sound/soc/omap/omap-hdmi-audio.c index 3e9cc48..8eeac7c 100644

[PATCH 1/3] ASoC: davinci-mcasp: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- sound/soc/davinci/davinci-mcasp.c | 12 1 file changed, 12 insertions(+) diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/d

[PATCH 1/3] ASoC: davinci-mcasp: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- sound/soc/davinci/davinci-mcasp.c | 12 1 file changed, 12 insertions(+) diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index f395bbc..d1a4aa2

[PATCH 0/3] ASoC: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Arvind Yadav (3): [PATCH 1/3] ASoC: davinci-mcasp: Handle return value of devm_kasprintf [PATCH 2/3] ASoC: fsl-asoc-card: Handle return value of devm_kasprintf [PATCH 3/3] ASoC: omap-hdmi-audio: Handle return value

[PATCH 0/3] ASoC: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Arvind Yadav (3): [PATCH 1/3] ASoC: davinci-mcasp: Handle return value of devm_kasprintf [PATCH 2/3] ASoC: fsl-asoc-card: Handle return value of devm_kasprintf [PATCH 3/3] ASoC: omap-hdmi-audio: Handle return value

[PATCH v2 1/2] [media] coda: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- changes in v2 : Calling coda_free_framebuffers to release already allocated buffers. drivers/media/platform/coda/coda-bit.c | 4 1 file changed, 4 inse

[PATCH v2 1/2] [media] coda: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2 : Calling coda_free_framebuffers to release already allocated buffers. drivers/media/platform/coda/coda-bit.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers

[PATCH 3/4] irqchip/gic: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/irqchip/irq-gic.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index 651d726..ec4a7e6

[PATCH 2/4] irqchip/gic-v3-its-platform-msi: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/irqchip/irq-gic-v3-its-platform-msi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/irqchip/irq-gic-v3-its-platform-msi.c b/drivers/irqchip/i

[PATCH 3/4] irqchip/gic: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/irqchip/irq-gic.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index 651d726..ec4a7e6 100644 --- a/drivers/irqchip/irq-gic.c

[PATCH 2/4] irqchip/gic-v3-its-platform-msi: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/irqchip/irq-gic-v3-its-platform-msi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/irqchip/irq-gic-v3-its-platform-msi.c b/drivers/irqchip/irq-gic-v3-its-platform-msi.c index

[PATCH 1/4] irqchip/gic-v3-its: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/irqchip/irq-gic-v3-its-pci-msi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/irqchip/irq-gic-v3-its-pci-msi.c b/drivers/irqchip/irq-gic-v3-i

[PATCH 1/4] irqchip/gic-v3-its: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/irqchip/irq-gic-v3-its-pci-msi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/irqchip/irq-gic-v3-its-pci-msi.c b/drivers/irqchip/irq-gic-v3-its-pci-msi.c index 14a8c0a

[PATCH 0/4] iirqchip: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Arvind Yadav (4): [PATCH 1/4] irqchip/gic-v3-its: Handle return value of kasprintf [PATCH 2/4] irqchip/gic-v3-its-platform-msi: Handle return value of kasprintf [PATCH 3/4] irqchip/gic: Handle return value of kasprintf [PATCH 4

[PATCH 0/4] iirqchip: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Arvind Yadav (4): [PATCH 1/4] irqchip/gic-v3-its: Handle return value of kasprintf [PATCH 2/4] irqchip/gic-v3-its-platform-msi: Handle return value of kasprintf [PATCH 3/4] irqchip/gic: Handle return value of kasprintf [PATCH 4

[PATCH 2/2] [media] cx23885: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/media/pci/cx23885/cx23885-input.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/media/pci/cx23885/cx23885-inpu

[PATCH 2/2] [media] cx23885: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/media/pci/cx23885/cx23885-input.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/media/pci/cx23885/cx23885-input.c b/drivers/media/pci/cx23885

[PATCH 1/2] [media] coda: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/media/platform/coda/coda-bit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/coda/coda-bit.c b/drivers/media/platform/coda/coda

[PATCH 1/2] [media] coda: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/media/platform/coda/coda-bit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/coda/coda-bit.c b/drivers/media/platform/coda/coda-bit.c index 291c409..8d78183

[PATCH 0/2] [media] Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Arvind Yadav (2): [PATCH 1/2][media] coda: Handle return value of kasprintf [PATCH 2/2][media] cx23885: Handle return value of kasprintf drivers/media/pci/cx23885/cx23885-input.c | 15 +-- drivers/media/platform/coda

[PATCH 0/2] [media] Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Arvind Yadav (2): [PATCH 1/2][media] coda: Handle return value of kasprintf [PATCH 2/2][media] cx23885: Handle return value of kasprintf drivers/media/pci/cx23885/cx23885-input.c | 15 +-- drivers/media/platform/coda

[PATCH 1/2] drm: tegra: dc: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/gpu/drm/tegra/dc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index 4df3911..f3214a1

[PATCH 1/2] drm: tegra: dc: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/gpu/drm/tegra/dc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c index 4df3911..f3214a1 100644 --- a/drivers/gpu/drm/tegra/dc.c

[PATCH 2/2] drm: Release memory obtained by kasprintf

2017-09-20 Thread Arvind Yadav
Free memory region, if drm_crtc_init_with_planes is not successful. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/gpu/drm/drm_crtc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 5af25ce..cd4e628

[PATCH 2/2] drm: Release memory obtained by kasprintf

2017-09-20 Thread Arvind Yadav
Free memory region, if drm_crtc_init_with_planes is not successful. Signed-off-by: Arvind Yadav --- drivers/gpu/drm/drm_crtc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 5af25ce..cd4e628 100644 --- a/drivers/gpu/drm

[PATCH 0/2] Handle / Release memory obtained by kasprintf

2017-09-20 Thread Arvind Yadav
Arvind Yadav (2): [PATCH 1/2] drm: tegra: dc: Handle return value of kasprintf [PATCH 2/2] drm: Release memory obtained by kasprintf drivers/gpu/drm/drm_crtc.c | 1 + drivers/gpu/drm/tegra/dc.c | 2 ++ 2 files changed, 3 insertions(+) -- 1.9.1

[PATCH 0/2] Handle / Release memory obtained by kasprintf

2017-09-20 Thread Arvind Yadav
Arvind Yadav (2): [PATCH 1/2] drm: tegra: dc: Handle return value of kasprintf [PATCH 2/2] drm: Release memory obtained by kasprintf drivers/gpu/drm/drm_crtc.c | 1 + drivers/gpu/drm/tegra/dc.c | 2 ++ 2 files changed, 3 insertions(+) -- 1.9.1

[PATCH 0/2] Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Arvind Yadav (2): [PATCH 1/2] gpio: brcmstb: Handle return value of devm_kasprintf [PATCH 2/2] gpio: tb10x: Handle return value of devm_kasprintf drivers/gpio/gpio-brcmstb.c | 3 +++ drivers/gpio/gpio-tb10x.c | 3 +++ 2

[PATCH 0/2] Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Arvind Yadav (2): [PATCH 1/2] gpio: brcmstb: Handle return value of devm_kasprintf [PATCH 2/2] gpio: tb10x: Handle return value of devm_kasprintf drivers/gpio/gpio-brcmstb.c | 3 +++ drivers/gpio/gpio-tb10x.c | 3 +++ 2

[PATCH 1/2] gpio: brcmstb: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/gpio/gpio-brcmstb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpio/gpio-brcmstb.c b/drivers/gpio/gpio-brcmstb.c index dd0308c..1

[PATCH 2/2] gpio: tb10x: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/gpio/gpio-tb10x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpio/gpio-tb10x.c b/drivers/gpio/gpio-tb10x.c index 091ffaa..ac6f2a9

[PATCH 1/2] gpio: brcmstb: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/gpio/gpio-brcmstb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpio/gpio-brcmstb.c b/drivers/gpio/gpio-brcmstb.c index dd0308c..1227d6e 100644 --- a/drivers/gpio/gpio

[PATCH 2/2] gpio: tb10x: Handle return value of devm_kasprintf

2017-09-20 Thread Arvind Yadav
devm_kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/gpio/gpio-tb10x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpio/gpio-tb10x.c b/drivers/gpio/gpio-tb10x.c index 091ffaa..ac6f2a9 100644 --- a/drivers/gpio/gpio-tb10x.c

[PATCH] phy: tegra: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/phy/tegra/xusb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c index 3cbcb25..4307bf0 100644 --- a/d

[PATCH] phy: tegra: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/phy/tegra/xusb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c index 3cbcb25..4307bf0 100644 --- a/drivers/phy/tegra/xusb.c +++ b

[PATCH] serial: core: Release memory obtained by kasprintf

2017-09-20 Thread Arvind Yadav
Free memory region, if uart_add_one_port is not successful. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/tty/serial/serial_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_

[PATCH] serial: core: Release memory obtained by kasprintf

2017-09-20 Thread Arvind Yadav
Free memory region, if uart_add_one_port is not successful. Signed-off-by: Arvind Yadav --- drivers/tty/serial/serial_core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index 3a14ccc..989adbb 100644

[PATCH] netfilter: nf_tables: Release memory obtained by kasprintf

2017-09-20 Thread Arvind Yadav
Free memory region, if nf_tables_set_alloc_name is not successful. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- net/netfilter/nf_tables_api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c

[PATCH] netfilter: nf_tables: Release memory obtained by kasprintf

2017-09-20 Thread Arvind Yadav
Free memory region, if nf_tables_set_alloc_name is not successful. Signed-off-by: Arvind Yadav --- net/netfilter/nf_tables_api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index 9299271..393e37e 100644

[PATCH] PM / OPP: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/base/power/opp/debugfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/base/power/opp/debugfs.c b/drivers/base/power/opp/deb

[PATCH] PM / OPP: Handle return value of kasprintf

2017-09-20 Thread Arvind Yadav
kasprintf() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/base/power/opp/debugfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/base/power/opp/debugfs.c b/drivers/base/power/opp/debugfs.c index 81cf120..226d6ae 100644

[PATCH] drivers/perf: arm_pmu_acpi: Release memory obtained by kasprintf

2017-09-20 Thread Arvind Yadav
Free memory region, if arm_pmu_acpi_probe is not successful. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/perf/arm_pmu_acpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm_pmu_acpi.c b/drivers/perf/arm_pmu_acpi.c index 0a9b787..3303dd8

[PATCH] drivers/perf: arm_pmu_acpi: Release memory obtained by kasprintf

2017-09-20 Thread Arvind Yadav
Free memory region, if arm_pmu_acpi_probe is not successful. Signed-off-by: Arvind Yadav --- drivers/perf/arm_pmu_acpi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/perf/arm_pmu_acpi.c b/drivers/perf/arm_pmu_acpi.c index 0a9b787..3303dd8 100644 --- a/drivers/perf/arm_pmu_acpi.c

[PATCH] 9p: constify xattr_handler

2017-08-31 Thread Arvind Yadav
xattr_handler are not supposed to change at runtime. "struct super_block" working with xattr_handler provided by work with const xattr_handler. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- fs/9p/xattr.c | 6 +++--- 1

[PATCH] 9p: constify xattr_handler

2017-08-31 Thread Arvind Yadav
xattr_handler are not supposed to change at runtime. "struct super_block" working with xattr_handler provided by work with const xattr_handler. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- fs/9p/xattr.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH] orangefs: constify xattr_handler

2017-08-31 Thread Arvind Yadav
xattr_handler are not supposed to change at runtime. "struct super_block" working with xattr_handler provided by work with const xattr_handler. So mark the non-const structs as const Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- fs/orangefs/xattr.c | 2 +- 1

[PATCH] orangefs: constify xattr_handler

2017-08-31 Thread Arvind Yadav
xattr_handler are not supposed to change at runtime. "struct super_block" working with xattr_handler provided by work with const xattr_handler. So mark the non-const structs as const Signed-off-by: Arvind Yadav --- fs/orangefs/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH] staging: vboxvideo: constify drm_fb_helper_funcs

2017-08-31 Thread Arvind Yadav
Sorry for noise, Please Ignore this. :( On Thursday 31 August 2017 03:16 PM, Arvind Yadav wrote: drm_fb_helper_funcs are not supposed to change at runtime. All functions working with drm_fb_helper_funcs provided by work with const drm_fb_helper_funcs. So mark the non-const structs as const

Re: [PATCH] staging: vboxvideo: constify drm_fb_helper_funcs

2017-08-31 Thread Arvind Yadav
Sorry for noise, Please Ignore this. :( On Thursday 31 August 2017 03:16 PM, Arvind Yadav wrote: drm_fb_helper_funcs are not supposed to change at runtime. All functions working with drm_fb_helper_funcs provided by work with const drm_fb_helper_funcs. So mark the non-const structs as const

[PATCH] staging: vboxvideo: constify drm_fb_helper_funcs

2017-08-31 Thread Arvind Yadav
drm_fb_helper_funcs are not supposed to change at runtime. All functions working with drm_fb_helper_funcs provided by work with const drm_fb_helper_funcs. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/staging/vboxvideo/vbox_fb

[PATCH] staging: vboxvideo: constify drm_fb_helper_funcs

2017-08-31 Thread Arvind Yadav
drm_fb_helper_funcs are not supposed to change at runtime. All functions working with drm_fb_helper_funcs provided by work with const drm_fb_helper_funcs. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/staging/vboxvideo/vbox_fb.c | 2 +- 1 file changed, 1

[PATCH] f2fs: constify super_operations

2017-08-31 Thread Arvind Yadav
super_operations are not supposed to change at runtime. "struct super_block" working with super_operations provided by work with const super_operations. So mark the non-const structs as const Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- fs/f2fs/super.c | 2 +- 1

[PATCH] f2fs: constify super_operations

2017-08-31 Thread Arvind Yadav
super_operations are not supposed to change at runtime. "struct super_block" working with super_operations provided by work with const super_operations. So mark the non-const structs as const Signed-off-by: Arvind Yadav --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH] Staging: atomisp: constify driver_attribute

2017-08-31 Thread Arvind Yadav
driver_attribute are not supposed to change at runtime. Functions driver_create_file/driver_remove_file are working with const driver_attribute. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/staging/media/atomisp/pci/at

[PATCH] Staging: atomisp: constify driver_attribute

2017-08-31 Thread Arvind Yadav
driver_attribute are not supposed to change at runtime. Functions driver_create_file/driver_remove_file are working with const driver_attribute. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/staging/media/atomisp/pci/atomisp2/atomisp_drvfs.c | 2 +- 1 file

[PATCH] platform: thinkpad_acpi: constify driver_attribute

2017-08-31 Thread Arvind Yadav
driver_attribute are not supposed to change at runtime. Functions driver_create_file/driver_remove_file are working with const driver_attribute. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/platform/x86/thinkpad_acpi.c | 2 +-

[PATCH] platform: thinkpad_acpi: constify driver_attribute

2017-08-31 Thread Arvind Yadav
driver_attribute are not supposed to change at runtime. Functions driver_create_file/driver_remove_file are working with const driver_attribute. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/platform/x86/thinkpad_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] thermal : Remove const to make same prototype

2017-08-31 Thread Arvind Yadav
Here, prototype of thermal_zone_device_register is not matching with static inline thermal_zone_device_register. One is using const thermal_zone_params. Other is using non-const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- include/linux/thermal.h | 2 +- 1 file chan

[PATCH] thermal : Remove const to make same prototype

2017-08-31 Thread Arvind Yadav
Here, prototype of thermal_zone_device_register is not matching with static inline thermal_zone_device_register. One is using const thermal_zone_params. Other is using non-const. Signed-off-by: Arvind Yadav --- include/linux/thermal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] powerpc: 4xx: constify platform_suspend_ops

2017-08-30 Thread Arvind Yadav
platform_suspend_ops are not supposed to change at runtime. Functions suspend_set_ops working with const platform_suspend_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- arch/powerpc/sysdev/ppc4xx_cpm.c | 2 +- 1 file changed, 1 ins

[PATCH] powerpc: 4xx: constify platform_suspend_ops

2017-08-30 Thread Arvind Yadav
platform_suspend_ops are not supposed to change at runtime. Functions suspend_set_ops working with const platform_suspend_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/powerpc/sysdev/ppc4xx_cpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] ARM: mxs: constify platform_suspend_ops

2017-08-30 Thread Arvind Yadav
platform_suspend_ops are not supposed to change at runtime. Functions suspend_set_ops working with const platform_suspend_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- arch/arm/mach-mxs/pm.c | 2 +- 1 file changed, 1 insertion

[PATCH] ARM: mxs: constify platform_suspend_ops

2017-08-30 Thread Arvind Yadav
platform_suspend_ops are not supposed to change at runtime. Functions suspend_set_ops working with const platform_suspend_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/arm/mach-mxs/pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

[PATCH] gfs2: constify rhashtable_params

2017-08-30 Thread Arvind Yadav
rhashtable_params are not supposed to change at runtime. All Functions rhashtable_* working with const rhashtable_params provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- fs/gfs2/glock.c | 2 +- 1 file changed, 1 insertion

[PATCH] gfs2: constify rhashtable_params

2017-08-30 Thread Arvind Yadav
rhashtable_params are not supposed to change at runtime. All Functions rhashtable_* working with const rhashtable_params provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- fs/gfs2/glock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs

[PATCH] RDS: constify rhashtable_params

2017-08-30 Thread Arvind Yadav
rhashtable_params are not supposed to change at runtime. All Functions rhashtable_* working with const rhashtable_params provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- net/rds/bind.c | 2 +- 1 file changed, 1 insertion

[PATCH] RDS: constify rhashtable_params

2017-08-30 Thread Arvind Yadav
rhashtable_params are not supposed to change at runtime. All Functions rhashtable_* working with const rhashtable_params provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- net/rds/bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net

[PATCH] netfilter: nat: constify rhashtable_params

2017-08-30 Thread Arvind Yadav
rhashtable_params are not supposed to change at runtime. All Functions rhashtable_* working with const rhashtable_params provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- net/netfilter/nf_nat_core.c | 2 +- 1 file chan

[PATCH] netfilter: nat: constify rhashtable_params

2017-08-30 Thread Arvind Yadav
rhashtable_params are not supposed to change at runtime. All Functions rhashtable_* working with const rhashtable_params provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- net/netfilter/nf_nat_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] drm: vmwgfx: constify vmw_fence_ops

2017-08-29 Thread Arvind Yadav
vmw_fence_ops are not supposed to change at runtime. Functions "dma_fence_init" working with const vmw_fence_ops provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 +- 1

[PATCH] drm: vmwgfx: constify vmw_fence_ops

2017-08-29 Thread Arvind Yadav
vmw_fence_ops are not supposed to change at runtime. Functions "dma_fence_init" working with const vmw_fence_ops provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 +- 1 file changed, 1 insertion(+),

[PATCH 3/3] iommu: s390: constify iommu_ops

2017-08-28 Thread Arvind Yadav
iommu_ops are not supposed to change at runtime. Functions 'bus_set_iommu' working with const iommu_ops provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/iommu/s390-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 de

[PATCH 3/3] iommu: s390: constify iommu_ops

2017-08-28 Thread Arvind Yadav
iommu_ops are not supposed to change at runtime. Functions 'bus_set_iommu' working with const iommu_ops provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/iommu/s390-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 1/3] iommu: exynos: constify iommu_ops

2017-08-28 Thread Arvind Yadav
iommu_ops are not supposed to change at runtime. Functions 'iommu_device_set_ops' and 'bus_set_iommu' working with const iommu_ops provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/iommu/exynos-iommu.c | 4 ++--

[PATCH 2/3] iommu: mtk: constify iommu_ops

2017-08-28 Thread Arvind Yadav
iommu_ops are not supposed to change at runtime. Functions 'iommu_device_set_ops' and 'bus_set_iommu' working with const iommu_ops provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/iommu/mtk_iommu.c| 4 ++-- d

[PATCH 1/3] iommu: exynos: constify iommu_ops

2017-08-28 Thread Arvind Yadav
iommu_ops are not supposed to change at runtime. Functions 'iommu_device_set_ops' and 'bus_set_iommu' working with const iommu_ops provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/iommu/exynos-iommu.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 2/3] iommu: mtk: constify iommu_ops

2017-08-28 Thread Arvind Yadav
iommu_ops are not supposed to change at runtime. Functions 'iommu_device_set_ops' and 'bus_set_iommu' working with const iommu_ops provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/iommu/mtk_iommu.c| 4 ++-- drivers/iommu/mtk_iommu_v1.c | 4

[PATCH 0/3] constify iommu_ops

2017-08-28 Thread Arvind Yadav
iommu_ops are not supposed to change at runtime. Functions 'iommu_device_set_ops' and 'bus_set_iommu' working with const iommu_ops provided by . So mark the non-const structs as const. Arvind Yadav (3): [PATCH 1/3] iommu: exynos: constify iommu_ops [PATCH 2/3] iommu: mtk: constify iommu_ops

[PATCH 0/3] constify iommu_ops

2017-08-28 Thread Arvind Yadav
iommu_ops are not supposed to change at runtime. Functions 'iommu_device_set_ops' and 'bus_set_iommu' working with const iommu_ops provided by . So mark the non-const structs as const. Arvind Yadav (3): [PATCH 1/3] iommu: exynos: constify iommu_ops [PATCH 2/3] iommu: mtk: constify iommu_ops

[PATCH] mtd: constify mtd_partition

2017-08-28 Thread Arvind Yadav
mtd_partition are not supposed to change at runtime. Functions 'mtd_device_parse_register' working with const mtd_partition provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav <arvind.yadav...@gmail.com> --- drivers/mtd/devices/lart.c | 2 +- drivers/mt

[PATCH] mtd: constify mtd_partition

2017-08-28 Thread Arvind Yadav
mtd_partition are not supposed to change at runtime. Functions 'mtd_device_parse_register' working with const mtd_partition provided by . So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/mtd/devices/lart.c | 2 +- drivers/mtd/maps/cfi_flagadm.c | 2

<    3   4   5   6   7   8   9   10   11   12   >