[PATCH -next] skd: fix error return code in skd_pci_probe()

2013-10-29 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return -ENOMEM in the skd construct error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/block/skd_main.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH -next] mtd: remove duplicated include from mtdcore.c

2013-10-29 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove duplicated include. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/mtd/mtdcore.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index 7189089..92311a5 100644

[PATCH -next] tifm: fix error return code in tifm_7xx1_probe()

2013-10-29 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return ENODEV in the pci ioremap error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/misc/tifm_7xx1.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH -next] ARM: ixp4xx: remove duplicated include from dsmg600-setup.c

2013-10-29 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove duplicated include. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- arch/arm/mach-ixp4xx/dsmg600-setup.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-ixp4xx/dsmg600-setup.c b/arch/arm/mach-ixp4xx/dsmg600

[PATCH -next] ARM i.MX53: remove duplicated include from clk-imx51-imx53.c

2013-10-29 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove duplicated include. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- arch/arm/mach-imx/clk-imx51-imx53.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/mach-imx/clk-imx51-imx53.c b/arch/arm/mach-imx/clk-imx51-imx53

[PATCH] ARM: spear: fix return value check in spear_setup_of_timer()

2013-10-28 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function clk_get_sys() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- arch/arm/mach-spear/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] befs: fix return value check in befs_iget()

2013-10-28 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function iget_locked() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun --- fs/befs/linuxvfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH] befs: fix return value check in befs_iget()

2013-10-28 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function iget_locked() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- fs/befs/linuxvfs.c | 4

[PATCH] ARM: spear: fix return value check in spear_setup_of_timer()

2013-10-28 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function clk_get_sys() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- arch/arm/mach-spear

[PATCH] staging: drm/imx: fix return value check in imx_drm_init()

2013-10-25 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function platform_device_register_simple() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- drivers/staging/imx-drm/imx-drm-core.c | 4 ++-- 1 file changed

[PATCH] staging: drm/imx: fix return value check in imx_drm_init()

2013-10-25 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function platform_device_register_simple() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn

[PATCH -next] staging: sep: add missing misc_deregister() on error in sep_register_driver_with_fs()

2013-10-20 Thread Wei Yongjun
From: Wei Yongjun Add the missing misc_deregister() before return from sep_register_driver_with_fs() in the error handling case. Signed-off-by: Wei Yongjun --- drivers/staging/sep/sep_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/sep/sep_main.c b/drivers/staging

[PATCH -next] xfs: remove duplicated include from xfs_bmap.c

2013-10-20 Thread Wei Yongjun
From: Wei Yongjun Remove duplicated include. Signed-off-by: Wei Yongjun --- fs/xfs/xfs_bmap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index e6b4202..92b97f7 100644 --- a/fs/xfs/xfs_bmap.c +++ b/fs/xfs/xfs_bmap.c @@ -34,7 +34,6 @@ #include

[PATCH -next] pinctrl: tb10x: use module_platform_driver to simplify the code

2013-10-20 Thread Wei Yongjun
From: Wei Yongjun module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Wei Yongjun --- drivers/pinctrl/pinctrl-tb10x.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/pinctrl/pinctrl-tb10x.c b/drivers/pinctrl

[PATCH -next] pinctrl: tb10x: fix the error handling in tb10x_pinctrl_probe()

2013-10-20 Thread Wei Yongjun
From: Wei Yongjun This patch fix the error handling in tb10x_pinctrl_probe(): - devm_ioremap_resource() return ERR_PTR() and never return NULL - remove the dev_err call to avoid redundant error message - pinctrl_register() returns NULL not ERR_PTR() Signed-off-by: Wei Yongjun --- drivers

[PATCH -next] pinctrl: tb10x: use module_platform_driver to simplify the code

2013-10-20 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/pinctrl/pinctrl-tb10x.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff

[PATCH -next] pinctrl: tb10x: fix the error handling in tb10x_pinctrl_probe()

2013-10-20 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn This patch fix the error handling in tb10x_pinctrl_probe(): - devm_ioremap_resource() return ERR_PTR() and never return NULL - remove the dev_err call to avoid redundant error message - pinctrl_register() returns NULL not ERR_PTR() Signed-off

[PATCH -next] xfs: remove duplicated include from xfs_bmap.c

2013-10-20 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove duplicated include. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- fs/xfs/xfs_bmap.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c index e6b4202..92b97f7 100644 --- a/fs/xfs

[PATCH -next] staging: sep: add missing misc_deregister() on error in sep_register_driver_with_fs()

2013-10-20 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Add the missing misc_deregister() before return from sep_register_driver_with_fs() in the error handling case. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/staging/sep/sep_main.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH] mtg: docg3: use free_bch() instead of kfree()

2013-10-10 Thread Wei Yongjun
From: Wei Yongjun Use free_bch() instead of kfree() to free init_bch() allocated data. Signed-off-by: Wei Yongjun --- drivers/mtd/devices/docg3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c index 3e1b0a0

[PATCH] Staging: crystalhd: use vfree() instead of kfree()

2013-10-10 Thread Wei Yongjun
From: Wei Yongjun Use vfree() instead of kfree() to free vmalloc() allocated data. Signed-off-by: Wei Yongjun --- drivers/staging/crystalhd/crystalhd_lnx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/crystalhd/crystalhd_lnx.c b/drivers/staging

[PATCH] Staging: crystalhd: use vfree() instead of kfree()

2013-10-10 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Use vfree() instead of kfree() to free vmalloc() allocated data. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/staging/crystalhd/crystalhd_lnx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH] mtg: docg3: use free_bch() instead of kfree()

2013-10-10 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Use free_bch() instead of kfree() to free init_bch() allocated data. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/mtd/devices/docg3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/devices

[PATCH] ASoC: wm8993: drop regulator_bulk_free of devm_ allocated data

2013-09-27 Thread Wei Yongjun
From: Wei Yongjun It's not necessary to free regulator consumers allocated with devm_regulator_bulk_get. Signed-off-by: Wei Yongjun --- sound/soc/codecs/wm8993.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c index 433d59a..2ee23a3

[PATCH] ASoC: wm8993: drop regulator_bulk_free of devm_ allocated data

2013-09-27 Thread Wei Yongjun
From: Wei Yongjun It's not necessary to free regulator consumers allocated with devm_regulator_bulk_get. Signed-off-by: Wei Yongjun --- sound/soc/codecs/wm8993.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c index 433d59a..2ee23a3

[PATCH] ASoC: wm8993: drop regulator_bulk_free of devm_ allocated data

2013-09-27 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn It's not necessary to free regulator consumers allocated with devm_regulator_bulk_get. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- sound/soc/codecs/wm8993.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs

[PATCH] ASoC: wm8993: drop regulator_bulk_free of devm_ allocated data

2013-09-27 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn It's not necessary to free regulator consumers allocated with devm_regulator_bulk_get. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- sound/soc/codecs/wm8993.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs

[PATCH] mfd: ezx-pcap: drop devm_free_irq of devm_ allocated irq

2013-09-25 Thread Wei Yongjun
From: Wei Yongjun The devm_request_irq function allocates irq that is released when a driver detaches. Thus, there is no reason to explicitly call devm_free_irq in probe or remove functions. Signed-off-by: Wei Yongjun --- drivers/mfd/ezx-pcap.c | 7 +-- 1 file changed, 1 insertion(+), 6

[PATCH] mfd: twl6040: drop devm_free_irq of devm_ allocated irq

2013-09-25 Thread Wei Yongjun
From: Wei Yongjun The devm_request_irq function allocates irq that is released when a driver detaches. Thus, there is no reason to explicitly call devm_free_irq in probe or remove functions. Signed-off-by: Wei Yongjun --- drivers/mfd/twl6040.c | 10 ++ 1 file changed, 2 insertions

[PATCH] mfd: twl6040: drop devm_free_irq of devm_ allocated irq

2013-09-25 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn The devm_request_irq function allocates irq that is released when a driver detaches. Thus, there is no reason to explicitly call devm_free_irq in probe or remove functions. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/mfd

[PATCH] mfd: ezx-pcap: drop devm_free_irq of devm_ allocated irq

2013-09-25 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn The devm_request_irq function allocates irq that is released when a driver detaches. Thus, there is no reason to explicitly call devm_free_irq in probe or remove functions. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/mfd

[PATCH] mmc: cb710: drop free_irq for devm_request_irq allocated irq

2013-09-23 Thread Wei Yongjun
From: Wei Yongjun irq allocated with devm_request_irq should not be freed using free_irq, because doing so causes a dangling pointer, and a subsequent double free. Signed-off-by: Wei Yongjun --- drivers/misc/cb710/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH -next] staging: r8188eu: remove needless check before usb_free_urb()

2013-09-23 Thread Wei Yongjun
From: Wei Yongjun usb_free_urb(NULL) is safe and this check is not required. Signed-off-by: Wei Yongjun --- drivers/staging/rtl8188eu/os_dep/recv_linux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/os_dep/recv_linux.c b/drivers/staging

[PATCH] tps65090-charger: drop devm_free_irq of devm_ allocated irq

2013-09-23 Thread Wei Yongjun
From: Wei Yongjun The devm_request_irq function allocates irq that is released when a driver detaches. Thus, there is no reason to explicitly call devm_free_irq in probe or remove functions. Signed-off-by: Wei Yongjun --- drivers/power/tps65090-charger.c | 11 --- 1 file changed, 4

[PATCH] i2o: add missing destroy_workqueue() on error in i2o_driver_register()

2013-09-23 Thread Wei Yongjun
From: Wei Yongjun Add the missing destroy_workqueue() before return from i2o_driver_register() in the error handling case. Signed-off-by: Wei Yongjun --- drivers/message/i2o/driver.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/drivers/message/i2o

[PATCH -next] dma: mmp_pdma: use list_move instead of list_del/list_add

2013-09-23 Thread Wei Yongjun
From: Wei Yongjun Using list_move() instead of list_del() + list_add(). Signed-off-by: Wei Yongjun --- drivers/dma/mmp_pdma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma/mmp_pdma.c index ff8d7827..558994f 100644 --- a/drivers/dma

[PATCH -next] dma: mmp_pdma: use list_move instead of list_del/list_add

2013-09-23 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Using list_move() instead of list_del() + list_add(). Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/dma/mmp_pdma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/mmp_pdma.c b/drivers/dma

[PATCH] i2o: add missing destroy_workqueue() on error in i2o_driver_register()

2013-09-23 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Add the missing destroy_workqueue() before return from i2o_driver_register() in the error handling case. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/message/i2o/driver.c | 16 ++-- 1 file changed, 10 insertions

[PATCH] tps65090-charger: drop devm_free_irq of devm_ allocated irq

2013-09-23 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn The devm_request_irq function allocates irq that is released when a driver detaches. Thus, there is no reason to explicitly call devm_free_irq in probe or remove functions. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/power

[PATCH -next] staging: r8188eu: remove needless check before usb_free_urb()

2013-09-23 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn usb_free_urb(NULL) is safe and this check is not required. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/staging/rtl8188eu/os_dep/recv_linux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers

[PATCH] mmc: cb710: drop free_irq for devm_request_irq allocated irq

2013-09-23 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn irq allocated with devm_request_irq should not be freed using free_irq, because doing so causes a dangling pointer, and a subsequent double free. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/misc/cb710/core.c | 2 +- 1 file

[PATCH -next] drivers: CCI: fix the error handle in cci_pmu_probe()

2013-09-21 Thread Wei Yongjun
From: Wei Yongjun This patch fix the error handle of function cci_pmu_probe(): - using IS_ERR() instead of NULL test for the return value of devm_ioremap_resource() since it nerver return NULL. - remove kfree() for devm_kzalloc allocated memory - remove dev_warn() since devm_ioremap_resource

[PATCH -next] drivers: CCI: fix the error handle in cci_pmu_probe()

2013-09-21 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn This patch fix the error handle of function cci_pmu_probe(): - using IS_ERR() instead of NULL test for the return value of devm_ioremap_resource() since it nerver return NULL. - remove kfree() for devm_kzalloc allocated memory - remove dev_warn

Re: [PATCH] Drivers: hv: vmbus: fix error return code in vmbus_connect()

2013-09-11 Thread Wei Yongjun
On 09/12/2013 04:03 AM, KY Srinivasan wrote: > >> -Original Message- >> From: Wei Yongjun [mailto:weiyj...@gmail.com] >> Sent: Wednesday, September 11, 2013 4:20 AM >> To: KY Srinivasan; Haiyang Zhang >> Cc: yongjun_...@trendmicro.com.cn; de...@linu

[PATCH] drm/msm: fix potential NULL pointer dereference

2013-09-11 Thread Wei Yongjun
From: Wei Yongjun The dereference to 'pdata' should be moved below the NULL test. Signed-off-by: Wei Yongjun --- drivers/gpu/drm/msm/msm_gpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c index e1e1ec9

[PATCH] MFD: ucb1x00-core: fix error return code in ucb1x00_probe()

2013-09-11 Thread Wei Yongjun
From: Wei Yongjun Fix to return a negative error code in the irq alloc error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/mfd/ucb1x00-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/ucb1x00-core.c b/drivers/mfd

[PATCH] Drivers: hv: vmbus: fix error return code in vmbus_connect()

2013-09-11 Thread Wei Yongjun
From: Wei Yongjun Fix to return -EINVAL in the version check error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/hv/connection.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/hv/connection.c b/drivers/hv

[PATCH] drm/omap: fix error return code in omap_dmm_probe()

2013-09-11 Thread Wei Yongjun
From: Wei Yongjun Fix to return -ENOMEM in the refill memory alloc error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/omapdrm

[PATCH] drm/omap: fix error return code in omap_dmm_probe()

2013-09-11 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return -ENOMEM in the refill memory alloc error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 1 + 1 file changed, 1

[PATCH] MFD: ucb1x00-core: fix error return code in ucb1x00_probe()

2013-09-11 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return a negative error code in the irq alloc error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/mfd/ucb1x00-core.c | 1 + 1 file changed, 1 insertion

[PATCH] Drivers: hv: vmbus: fix error return code in vmbus_connect()

2013-09-11 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return -EINVAL in the version check error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/hv/connection.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH] drm/msm: fix potential NULL pointer dereference

2013-09-11 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn The dereference to 'pdata' should be moved below the NULL test. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/gpu/drm/msm/msm_gpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm

Re: [PATCH] Drivers: hv: vmbus: fix error return code in vmbus_connect()

2013-09-11 Thread Wei Yongjun
On 09/12/2013 04:03 AM, KY Srinivasan wrote: -Original Message- From: Wei Yongjun [mailto:weiyj...@gmail.com] Sent: Wednesday, September 11, 2013 4:20 AM To: KY Srinivasan; Haiyang Zhang Cc: yongjun_...@trendmicro.com.cn; de...@linuxdriverproject.org; linux- ker...@vger.kernel.org

[PATCH] drm/msm: fix return value check in ERR_PTR()

2013-09-10 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function drm_prime_pages_to_sg() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- drivers/gpu/drm/msm/msm_gem.c | 4 ++-- 1 file changed, 2 insertions

[PATCH] drm/msm: fix return value check in ERR_PTR()

2013-09-10 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function drm_prime_pages_to_sg() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/gpu/drm

[PATCH] VMCI: fix to pass correct device identity to free_irq()

2013-09-06 Thread Wei Yongjun
From: Wei Yongjun free_irq() expects the same device identity that was passed to corresponding request_irq(), otherwise the IRQ is not freed. Signed-off-by: Wei Yongjun --- drivers/misc/vmw_vmci/vmci_guest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc

[PATCH] VMCI: fix to pass correct device identity to free_irq()

2013-09-06 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn free_irq() expects the same device identity that was passed to corresponding request_irq(), otherwise the IRQ is not freed. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/misc/vmw_vmci/vmci_guest.c | 2 +- 1 file changed, 1

[PATCH] drm/vmwgfx: fix error return code in vmw_driver_load()

2013-08-26 Thread Wei Yongjun
From: Wei Yongjun Fix to return -ENOMEM in the fence manager init error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm

[PATCH] drm/vmwgfx: fix error return code in vmw_driver_load()

2013-08-26 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return -ENOMEM in the fence manager init error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 4 +++- 1 file changed, 3

[PATCH] vme: vme_ca91cx42.c: fix to pass correct device identity to free_irq()

2013-08-25 Thread Wei Yongjun
From: Wei Yongjun free_irq() expects the same device identity that was passed to corresponding request_irq(), otherwise the IRQ is not freed. Signed-off-by: Wei Yongjun --- drivers/vme/bridges/vme_ca91cx42.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/vme

[PATCH] vme: vme_ca91cx42.c: fix to pass correct device identity to free_irq()

2013-08-25 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn free_irq() expects the same device identity that was passed to corresponding request_irq(), otherwise the IRQ is not freed. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/vme/bridges/vme_ca91cx42.c | 6 +- 1 file changed

[PATCH -next v2] drm/rcar-du: remove redundant dev_err call in rcar_du_lvdsenc_get_resources()

2013-08-23 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Also remove the dev_err call to avoid redundant error message and check for return value

[PATCH -next v2] drm/rcar-du: remove redundant dev_err call in rcar_du_lvdsenc_get_resources()

2013-08-23 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Also remove the dev_err call to avoid redundant error message and check

[PATCH -next] dma: cppi41: fix error return code in cppi41_dma_probe()

2013-08-22 Thread Wei Yongjun
From: Wei Yongjun Fix to return -EINVAL in the irq parse and map error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/dma/cppi41.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/dma/cppi41.c b/drivers/dma

[PATCH -next] block: fix error return code in parse_parts()

2013-08-22 Thread Wei Yongjun
From: Wei Yongjun Fix to return -EINVAL in the parts parse error handling case instead of 0(may overwrite to 0 by parse_subpart()), as done elsewhere in this function. Signed-off-by: Wei Yongjun --- block/cmdline-parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/cmdline

[PATCH -next] drm/rcar-du: fix return value check in rcar_du_lvdsenc_get_resources()

2013-08-22 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Also remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun --- drivers

[PATCH -next] f2fs: fix error return code in init_f2fs_fs()

2013-08-22 Thread Wei Yongjun
From: Wei Yongjun Fix to return -ENOMEM in the kset create and add error handling case instead of 0, as done elsewhere in this function. Introduced by commit b59d0bae6ca30c496f298881616258f9cde0d9c6. (f2fs: add sysfs support for controlling the gc_thread) Signed-off-by: Wei Yongjun --- fs

[PATCH -next] block: fix error return code in parse_parts()

2013-08-22 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return -EINVAL in the parts parse error handling case instead of 0(may overwrite to 0 by parse_subpart()), as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- block/cmdline-parser.c | 1 + 1 file

[PATCH -next] dma: cppi41: fix error return code in cppi41_dma_probe()

2013-08-22 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return -EINVAL in the irq parse and map error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/dma/cppi41.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH -next] f2fs: fix error return code in init_f2fs_fs()

2013-08-22 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return -ENOMEM in the kset create and add error handling case instead of 0, as done elsewhere in this function. Introduced by commit b59d0bae6ca30c496f298881616258f9cde0d9c6. (f2fs: add sysfs support for controlling the gc_thread) Signed

[PATCH -next] drm/rcar-du: fix return value check in rcar_du_lvdsenc_get_resources()

2013-08-22 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Also remove the dev_err call to avoid redundant error message. Signed-off

[PATCH -next] mm/page_alloc.c: remove duplicated include from page_alloc.c

2013-08-21 Thread Wei Yongjun
From: Wei Yongjun Remove duplicated include. Signed-off-by: Wei Yongjun --- mm/page_alloc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index efb2ffa..4751901 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -60,7 +60,6 @@ #include #include

[PATCH -next] ASoC: mmp-pcm: remove duplicated include from mmp-pcm.c

2013-08-21 Thread Wei Yongjun
From: Wei Yongjun Remove duplicated include. Signed-off-by: Wei Yongjun --- sound/soc/pxa/mmp-pcm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/pxa/mmp-pcm.c b/sound/soc/pxa/mmp-pcm.c index 9a97843..8235e23 100644 --- a/sound/soc/pxa/mmp-pcm.c +++ b/sound/soc/pxa/mmp-pcm.c

[PATCH -next] ASoC: mmp-pcm: remove duplicated include from mmp-pcm.c

2013-08-21 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove duplicated include. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- sound/soc/pxa/mmp-pcm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/pxa/mmp-pcm.c b/sound/soc/pxa/mmp-pcm.c index 9a97843..8235e23 100644

[PATCH -next] mm/page_alloc.c: remove duplicated include from page_alloc.c

2013-08-21 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove duplicated include. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- mm/page_alloc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index efb2ffa..4751901 100644 --- a/mm/page_alloc.c +++ b

[PATCH -next] ASoC: rcar: fix return value check in rsnd_gen1_probe()

2013-07-29 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(), and also remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun --- sound

[PATCH -next] ASoC: rcar: fix return value check in rsnd_gen1_probe()

2013-07-29 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function devm_ioremap_resource() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(), and also remove the dev_err call to avoid redundant error message. Signed-off

[PATCH -next] staging: xillybus: remove duplicated include from xillybus_core.c

2013-07-28 Thread Wei Yongjun
From: Wei Yongjun Remove duplicated include. Signed-off-by: Wei Yongjun --- drivers/staging/xillybus/xillybus_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c index dd0a71c..4b216d4 100644

[PATCH -next] staging: gdm724x: remove duplicated include from gdm_lte.c

2013-07-28 Thread Wei Yongjun
From: Wei Yongjun Remove duplicated include. Signed-off-by: Wei Yongjun --- drivers/staging/gdm724x/gdm_lte.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/gdm724x/gdm_lte.c b/drivers/staging/gdm724x/gdm_lte.c index 68ebc7d..7165d3a 100644 --- a/drivers/staging/gdm724x

[PATCH -next] staging: comedi: dt9812: remove duplicated include from dt9812.c

2013-07-28 Thread Wei Yongjun
From: Wei Yongjun Remove duplicated include. Signed-off-by: Wei Yongjun --- drivers/staging/comedi/drivers/dt9812.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/dt9812.c b/drivers/staging/comedi/drivers/dt9812.c index ffb7572..b865367 100644 --- a/drivers

[PATCH -next] x86: ce4100: remove duplicated include from ce4100.c

2013-07-28 Thread Wei Yongjun
From: Wei Yongjun Remove duplicated include. Signed-off-by: Wei Yongjun --- arch/x86/platform/ce4100/ce4100.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/platform/ce4100/ce4100.c b/arch/x86/platform/ce4100/ce4100.c index 8244f5e..d62e74d 100644 --- a/arch/x86/platform/ce4100

[PATCH -next] x86: ce4100: remove duplicated include from ce4100.c

2013-07-28 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove duplicated include. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- arch/x86/platform/ce4100/ce4100.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/platform/ce4100/ce4100.c b/arch/x86/platform/ce4100/ce4100.c

[PATCH -next] staging: comedi: dt9812: remove duplicated include from dt9812.c

2013-07-28 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove duplicated include. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/staging/comedi/drivers/dt9812.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/dt9812.c b/drivers/staging/comedi

[PATCH -next] staging: gdm724x: remove duplicated include from gdm_lte.c

2013-07-28 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove duplicated include. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/staging/gdm724x/gdm_lte.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/gdm724x/gdm_lte.c b/drivers/staging/gdm724x/gdm_lte.c

[PATCH -next] staging: xillybus: remove duplicated include from xillybus_core.c

2013-07-28 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Remove duplicated include. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/staging/xillybus/xillybus_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging

[PATCH] drm/cirrus: fix error handling in cirrus_device_init()

2013-07-27 Thread Wei Yongjun
From: Wei Yongjun Fix the error handling in function cirrus_device_init() to avoid resources leak in the error handling case. Signed-off-by: Wei Yongjun --- drivers/gpu/drm/cirrus/cirrus_main.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers

[PATCH] drm/cirrus: fix error handling in cirrus_device_init()

2013-07-27 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix the error handling in function cirrus_device_init() to avoid resources leak in the error handling case. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/gpu/drm/cirrus/cirrus_main.c | 19 --- 1 file changed

[PATCH -next] staging: gdm724x: use GFP_ATOMIC under spin lock

2013-07-25 Thread Wei Yongjun
From: Wei Yongjun A spin lock is taken here so we should use GFP_ATOMIC. Signed-off-by: Wei Yongjun --- drivers/staging/gdm724x/gdm_mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gdm724x/gdm_mux.c b/drivers/staging/gdm724x/gdm_mux.c index f570bc0

[PATCH -next] staging: gdm724x: use GFP_ATOMIC under spin lock

2013-07-25 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn A spin lock is taken here so we should use GFP_ATOMIC. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/staging/gdm724x/gdm_mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gdm724x

[PATCH -next] mtd: orion_nand: convert to use devm_* APIs

2013-07-16 Thread Wei Yongjun
From: Wei Yongjun Convert to use devm_* APIs to avoid resources leak on error handling case. Signed-off-by: Wei Yongjun --- drivers/mtd/nand/orion_nand.c | 29 + 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/drivers/mtd/nand/orion_nand.c b/drivers

[PATCH] pch_dma: fix error return code in pch_dma_probe()

2013-07-16 Thread Wei Yongjun
From: Wei Yongjun Fix to return -ENODEV when no proper base address found error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/dma/pch_dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/pch_dma.c b/drivers/dma

[PATCH -next] clk: sunxi: fix return value check

2013-07-16 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function clk_register_composite() and clk_register_factors() returns ERR_PTR() not NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- drivers/clk/sunxi/clk-sunxi.c | 4 ++-- 1 file changed, 2

[PATCH] ASoC: imx-sgtl5000: fix error return code in imx_sgtl5000_probe()

2013-07-16 Thread Wei Yongjun
From: Wei Yongjun Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- sound/soc/fsl/imx-sgtl5000.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/fsl/imx-sgtl5000.c

[PATCH] ASoC: imx-sgtl5000: fix error return code in imx_sgtl5000_probe()

2013-07-16 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- sound/soc/fsl/imx-sgtl5000.c | 4 +++- 1 file changed, 3 insertions

[PATCH -next] clk: sunxi: fix return value check

2013-07-16 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the function clk_register_composite() and clk_register_factors() returns ERR_PTR() not NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn

[PATCH] pch_dma: fix error return code in pch_dma_probe()

2013-07-16 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Fix to return -ENODEV when no proper base address found error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/dma/pch_dma.c | 1 + 1 file changed, 1 insertion

[PATCH -next] mtd: orion_nand: convert to use devm_* APIs

2013-07-16 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn Convert to use devm_* APIs to avoid resources leak on error handling case. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/mtd/nand/orion_nand.c | 29 + 1 file changed, 9 insertions(+), 20 deletions

[PATCH RESEND] PM / AVS: SmartReflex: remove redundant dev_err call in omap_sr_probe()

2013-07-11 Thread Wei Yongjun
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun Acked-by: Nishanth Menon --- cc to linux-pm with Nishanth Menon's ACK --- drivers/power/avs/smartreflex.c | 4 +--- 1 file changed, 1 insertion

[PATCH RESEND] PM / AVS: SmartReflex: remove redundant dev_err call in omap_sr_probe()

2013-07-11 Thread Wei Yongjun
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn Acked-by: Nishanth Menon n...@ti.com --- cc to linux-pm with Nishanth Menon's ACK --- drivers/power/avs

[PATCH] ARM: u300: fix return value check in __u300_init_boardpower()

2013-07-04 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function syscon_node_to_regmap() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- arch/arm/mach-u300/regulator.c | 4 ++-- 1 file changed, 2 insertions

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