From: Wei Yongjun yongjun_...@trendmicro.com.cn
If pdev-dev.platform_data is not set, mcfqspi_probe() will return 0
and release all the resources, in this case, we should return a error
code instead of 0.
This patch fix to return -ENOENT in this case and move the check for
pdev-dev.platform_data
From: Wei Yongjun
Fix to return -ENOMEM in the nvem iod alloc error handling case instead
of 0(possible overwrite to 0 by above nvme_submit_flush_data()), as done
elsewhere in this function.
Signed-off-by: Wei Yongjun
---
v1 -> v2: send to mail list from MAINTAINERS
---
drivers/block/n
From: Wei Yongjun
Fix to return -ENODEV in the dma channel request error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun
---
drivers/mtd/nand/fsmc_nand.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd
From: Wei Yongjun
Fix to return -EBUSY in the platform irq get error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun
---
drivers/rtc/rtc-vr41xx.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-vr41xx.c b
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
---
drivers/staging/slicoss/slicoss.c | 18 +++---
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/drivers
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
---
drivers/hwmon/abituguru.c | 16 ++--
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/drivers/hwmon
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
---
drivers/hwmon/abituguru.c | 16 ++--
1 file changed, 10
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
---
drivers/staging/slicoss/slicoss.c | 18 +++---
1 file
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return -EBUSY in the platform irq get error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/rtc/rtc-vr41xx.c | 4 +++-
1 file changed, 3 insertions(+), 1
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return -ENODEV in the dma channel request error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/mtd/nand/fsmc_nand.c | 1 +
1 file changed, 1 insertion
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return -ENOMEM in the nvem iod alloc error handling case instead
of 0(possible overwrite to 0 by above nvme_submit_flush_data()), as done
elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
v1 - v2: send
From: Wei Yongjun
Fix to return -ENOMEM in the memory alloc error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun
---
drivers/cdrom/gdrom.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/cdrom/gdrom.c b/drivers
From: Wei Yongjun
Fix to return -ENOMEM in the nvem iod alloc error handling case instead
of 0(possible overwrite to 0 by above nvme_submit_flush_data()), as done
elsewhere in this function.
Signed-off-by: Wei Yongjun
---
drivers/block/nvme-core.c | 6 --
1 file changed, 4 insertions
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return -ENOMEM in the nvem iod alloc error handling case instead
of 0(possible overwrite to 0 by above nvme_submit_flush_data()), as done
elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/block
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return -ENOMEM in the memory alloc error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/cdrom/gdrom.c | 8 ++--
1 file changed, 6 insertions(+), 2
From: Wei Yongjun
Fix to return -ENOMEM in the kobject_create_and_add() and kzalloc() error
handling case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun
---
drivers/uio/uio.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/uio/uio.c b/drivers/uio
From: Wei Yongjun
Fix to return -EINVAL in the rproc_find_loaded_rsc_table() error handling
case instead of 0, as done elsewhere in this function.
Introduced by commit a2b950ac7b1e6442919ee9e79c4963e134698869
(remoteproc: perserve resource table data).
Signed-off-by: Wei Yongjun
---
drivers
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return -EINVAL in the rproc_find_loaded_rsc_table() error handling
case instead of 0, as done elsewhere in this function.
Introduced by commit a2b950ac7b1e6442919ee9e79c4963e134698869
(remoteproc: perserve resource table data).
Signed-off
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return -ENOMEM in the kobject_create_and_add() and kzalloc() error
handling case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/uio/uio.c | 2 ++
1 file changed, 2
On 05/08/2013 07:28 AM, Andrew Morton wrote:
> On Sun, 5 May 2013 13:07:00 +0800 Wei Yongjun wrote:
>
>> From: Wei Yongjun
>>
>> We have registered platform device when module init, and
>> need unregister it when module exit.
>>
>> ...
>>
>>
From: Wei Yongjun
Fix to return a negative error code in the MSI bitmap alloc error
handling case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun
---
arch/powerpc/sysdev/fsl_msi.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch
From: Wei Yongjun
Fix to return -ENOMEM in the exynos_plane_init() error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun
---
drivers/gpu/drm/exynos/exynos_drm_drv.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu
From: Wei Yongjun
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
ipp_create_cmd_work() return ERR_PTR() on error and never return
NULL, so use IS_ERR() instead of IS_ERR_OR_NULL().
Signed-off-by: Wei Yongjun
---
drivers/gpu
On 05/07/2013 08:11 PM, Haojian Zhuang wrote:
> On 7 May 2013 20:06, Wei Yongjun wrote:
>> From: Wei Yongjun
>>
>> Fix to return a negative error code from the error handling
>> case instead of 0, as done elsewhere in this function.
From: Wei Yongjun
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Introduced by commit 9dddb4df90d136429b6d6ddefceb49a9b93f6cd1
(pinctrl: single: support generic pinconf)
Signed-off-by: Wei Yongjun
---
drivers/pinctrl/pinctrl
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
---
fs/pstore/ram.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c
index 32cbd7c..1376e5a
From: Wei Yongjun
Fix to return -ENOMEM in the memory malloc of 'out' and 'img_swap' error
handling case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun
---
sound/soc/codecs/wm0010.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/codecs/wm0010.c b
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return -ENOMEM in the memory malloc of 'out' and 'img_swap' error
handling case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
sound/soc/codecs/wm0010.c | 1 +
1 file changed
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
---
fs/pstore/ram.c | 2 ++
1 file changed, 2 insertions(+)
diff --git
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.
Introduced by commit 9dddb4df90d136429b6d6ddefceb49a9b93f6cd1
(pinctrl: single: support generic pinconf)
Signed-off-by: Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return -ENOMEM in the exynos_plane_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/exynos/exynos_drm_drv.c | 4 +++-
1 file changed, 3
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return a negative error code in the MSI bitmap alloc error
handling case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
arch/powerpc/sysdev/fsl_msi.c | 5 ++---
1 file changed
On 05/08/2013 07:28 AM, Andrew Morton wrote:
On Sun, 5 May 2013 13:07:00 +0800 Wei Yongjun weiyj...@gmail.com wrote:
From: Wei Yongjun yongjun_...@trendmicro.com.cn
We have registered platform device when module init, and
need unregister it when module exit.
...
--- a/drivers/rtc/rtc
From: Wei Yongjun
We have registered platform device when module init, and
need unregister it when module exit.
Signed-off-by: Wei Yongjun
---
drivers/rtc/rtc-tile.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/rtc/rtc-tile.c b/drivers/rtc/rtc-tile.c
index 249b653..fc3dee9
From: Wei Yongjun yongjun_...@trendmicro.com.cn
We have registered platform device when module init, and
need unregister it when module exit.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/rtc/rtc-tile.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/rtc/rtc
From: Wei Yongjun
We have registered platform driver when module init, and
need unregister it when module exit.
Signed-off-by: Wei Yongjun
---
no compile test.
---
drivers/tty/ehv_bytechan.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/tty/ehv_bytechan.c b/drivers/tty
From: Wei Yongjun
Remove duplicated include.
Signed-off-by: Wei Yongjun
---
arch/arm/xen/enlighten.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c
index 9a0a917..d30042e 100644
--- a/arch/arm/xen/enlighten.c
+++ b/arch/arm/xen
From: Wei Yongjun
Since we will remove items off the list using list_del_init() we need
to use a safe version of the list_for_each_entry() macro aptly named
list_for_each_entry_safe().
Signed-off-by: Wei Yongjun
---
drivers/spi/spi-topcliff-pch.c | 12 ++--
1 file changed, 6
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Since we will remove items off the list using list_del_init() we need
to use a safe version of the list_for_each_entry() macro aptly named
list_for_each_entry_safe().
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/spi/spi
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Remove duplicated include.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
arch/arm/xen/enlighten.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/xen/enlighten.c b/arch/arm/xen/enlighten.c
index 9a0a917..d30042e 100644
From: Wei Yongjun yongjun_...@trendmicro.com.cn
We have registered platform driver when module init, and
need unregister it when module exit.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
no compile test.
---
drivers/tty/ehv_bytechan.c | 1 +
1 file changed, 1 insertion(+)
diff
From: Wei Yongjun
Use platform_device_put() instead of platform_device_unregister() if
platform_device_add() fail, and platform_device_del() should be used
in the error handling case after platform_device_add() success.
Signed-off-by: Wei Yongjun
---
drivers/w1/slaves/w1_ds2760.c | 3 ++-
1
From: Wei Yongjun
Use platform_device_put() instead of platform_device_unregister() if
platform_device_add() fail, and platform_device_del() should be used
in the error handling case after platform_device_add() success.
Signed-off-by: Wei Yongjun
---
drivers/w1/slaves/w1_ds2781.c | 3 ++-
1
From: Wei Yongjun
Use platform_device_put() instead of platform_device_unregister() if
platform_device_add() fails, and also add the return value check of
platform_device_add_data().
Signed-off-by: Wei Yongjun
---
drivers/w1/slaves/w1_bq27000.c | 4 +++-
1 file changed, 3 insertions(+), 1
From: Wei Yongjun
Use platform_device_put() instead of platform_device_unregister() if
platform_device_add() fail, and platform_device_del() should be used
in the error handling case after platform_device_add() success.
Signed-off-by: Wei Yongjun
---
drivers/w1/slaves/w1_ds2780.c | 3 ++-
1
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Use platform_device_put() instead of platform_device_unregister() if
platform_device_add() fail, and platform_device_del() should be used
in the error handling case after platform_device_add() success.
Signed-off-by: Wei Yongjun yongjun_
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Use platform_device_put() instead of platform_device_unregister() if
platform_device_add() fails, and also add the return value check of
platform_device_add_data().
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/w1/slaves
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Use platform_device_put() instead of platform_device_unregister() if
platform_device_add() fail, and platform_device_del() should be used
in the error handling case after platform_device_add() success.
Signed-off-by: Wei Yongjun yongjun_
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Use platform_device_put() instead of platform_device_unregister() if
platform_device_add() fail, and platform_device_del() should be used
in the error handling case after platform_device_add() success.
Signed-off-by: Wei Yongjun yongjun_
From: Wei Yongjun
Fix to return -ENODEV in the chip not found error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun
---
drivers/rtc/rtc-pcf2123.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/rtc/rtc-pcf2123.c b/drivers/rtc/rtc-pcf2123
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
---
drivers/staging/ozwpan/ozcdev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/staging/ozwpan/ozcdev.c b/drivers
From: Wei Yongjun
Add the missing platform_driver_unregister() before return
from pch_spi_init() in the error handling case.
Signed-off-by: Wei Yongjun
---
drivers/spi/spi-topcliff-pch.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/spi/spi-topcliff-pch.c b
From: Wei Yongjun
Add the missing platform_driver_unregister() before return
from msm_iommu_driver_init() in the error handling case.
Signed-off-by: Wei Yongjun
---
drivers/iommu/msm_iommu_dev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iommu/msm_iommu_dev.c b/drivers/iommu
From: Wei Yongjun
Add the missing platform_driver_unregister() before return
from init_tis() in the device register error handling case.
Signed-off-by: Wei Yongjun
---
drivers/char/tpm/tpm_tis.c | 19 +--
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/drivers
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Add the missing platform_driver_unregister() before return
from init_tis() in the device register error handling case.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/char/tpm/tpm_tis.c | 19 +--
1 file changed
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Add the missing platform_driver_unregister() before return
from msm_iommu_driver_init() in the error handling case.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/iommu/msm_iommu_dev.c | 1 +
1 file changed, 1 insertion
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Add the missing platform_driver_unregister() before return
from pch_spi_init() in the error handling case.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/spi/spi-topcliff-pch.c | 4 +++-
1 file changed, 3 insertions(+), 1
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
---
drivers/staging/ozwpan/ozcdev.c | 2 ++
1 file changed, 2 insertions
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return -ENODEV in the chip not found error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/rtc/rtc-pcf2123.c | 1 +
1 file changed, 1 insertion(+)
diff
Commit-ID: 3482e664dc7f44e0ffb1fcf1de7af74977748f31
Gitweb: http://git.kernel.org/tip/3482e664dc7f44e0ffb1fcf1de7af74977748f31
Author: Wei Yongjun
AuthorDate: Wed, 24 Apr 2013 10:46:24 +0800
Committer: Ingo Molnar
CommitDate: Wed, 24 Apr 2013 08:44:47 +0200
x86/olpc/xo1/sci: Don't
From: Wei Yongjun
Fix to return -ENOENT in the host1x_bo lookup error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun
---
v1 -> v2: fix the patch subject
---
drivers/gpu/host1x/drm/gr2d.c | 8 ++--
1 file changed, 6 insertions(+), 2 deleti
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return -ENOENT in the host1x_bo lookup error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
v1 - v2: fix the patch subject
---
drivers/gpu/host1x/drm/gr2d.c | 8
Commit-ID: 3482e664dc7f44e0ffb1fcf1de7af74977748f31
Gitweb: http://git.kernel.org/tip/3482e664dc7f44e0ffb1fcf1de7af74977748f31
Author: Wei Yongjun yongjun_...@trendmicro.com.cn
AuthorDate: Wed, 24 Apr 2013 10:46:24 +0800
Committer: Ingo Molnar mi...@kernel.org
CommitDate: Wed, 24 Apr
am not
sure whether this patch was lost.
Regards,
Yongjun Wei
>
> Mark
> On 04/24/2013 10:48 AM, Wei Yongjun wrote:
>> From: Wei Yongjun
>>
>> Add the missing unlock before return from function host1x_drm_init() and
>> host1x_drm_exit() in the error handling ca
From: Wei Yongjun
Add the missing unlock before return from function host1x_drm_init() and
host1x_drm_exit() in the error handling case.
Signed-off-by: Wei Yongjun
---
rebased on the latest linux-next.git tree.
---
drivers/gpu/host1x/drm/drm.c | 2 ++
1 file changed, 2 insertions(+)
diff
From: Wei Yongjun
Fix to return -EINVAL in the host1x_bo lookup error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun
---
v1 -> v2: fix the patch subject
---
drivers/gpu/host1x/drm/gr2d.c | 8 ++--
1 file changed, 6 insertions(+), 2 deleti
From: Wei Yongjun
input_free_device() should only be used if input_register_device()
was not called yet or if it failed. Once device was unregistered
use input_unregister_device() and memory will be freed once last
reference to the device is dropped.
Signed-off-by: Wei Yongjun
---
drivers
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
---
drivers/gpu/host1x/drm/gr2d.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/host1x/drm
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
---
drivers/gpu/host1x/drm/gr2d.c | 8 ++--
1 file changed, 6
From: Wei Yongjun yongjun_...@trendmicro.com.cn
input_free_device() should only be used if input_register_device()
was not called yet or if it failed. Once device was unregistered
use input_unregister_device() and memory will be freed once last
reference to the device is dropped.
Signed-off
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return -EINVAL in the host1x_bo lookup error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
v1 - v2: fix the patch subject
---
drivers/gpu/host1x/drm/gr2d.c | 8
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Add the missing unlock before return from function host1x_drm_init() and
host1x_drm_exit() in the error handling case.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
rebased on the latest linux-next.git tree.
---
drivers/gpu/host1x
not
sure whether this patch was lost.
Regards,
Yongjun Wei
Mark
On 04/24/2013 10:48 AM, Wei Yongjun wrote:
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Add the missing unlock before return from function host1x_drm_init() and
host1x_drm_exit() in the error handling case.
Signed-off
From: Wei Yongjun
Fix to return -ENOMEM int the memory alloc error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun
---
drivers/iommu/amd_iommu_init.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu
From: Wei Yongjun
If krealloc() returns NULL, it doesn't free the original. So any code
of the form 'foo = krealloc(foo, ...);' is almost certainly a bug.
Introduced by commit fcb136e1ac5774909e0d85189f721b8dfa800e0f(mei: fix
reading large reposnes)
Signed-off-by: Wei Yongjun
---
drivers
From: Wei Yongjun yongjun_...@trendmicro.com.cn
If krealloc() returns NULL, it doesn't free the original. So any code
of the form 'foo = krealloc(foo, ...);' is almost certainly a bug.
Introduced by commit fcb136e1ac5774909e0d85189f721b8dfa800e0f(mei: fix
reading large reposnes)
Signed-off
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return -ENOMEM int the memory alloc error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/iommu/amd_iommu_init.c | 1 +
1 file changed, 1 insertion
From: Wei Yongjun
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun
---
drivers/spi/spi-omap2-mcspi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/spi/spi-omap2
From: Wei Yongjun
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun
---
sound/pci/hda/patch_realtek.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/pci/hda
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
sound/pci/hda/patch_realtek.c | 3 ++-
1 file changed, 2 insertions
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/spi/spi-omap2-mcspi.c | 3 ++-
1 file changed, 2 insertions
Commit-ID: c481420248c6730246d2a1b1773d5d7007ae0835
Gitweb: http://git.kernel.org/tip/c481420248c6730246d2a1b1773d5d7007ae0835
Author: Wei Yongjun
AuthorDate: Fri, 12 Apr 2013 11:05:54 +0800
Committer: Ingo Molnar
CommitDate: Fri, 12 Apr 2013 06:33:56 +0200
perf: Fix error return code
Commit-ID: c481420248c6730246d2a1b1773d5d7007ae0835
Gitweb: http://git.kernel.org/tip/c481420248c6730246d2a1b1773d5d7007ae0835
Author: Wei Yongjun yongjun_...@trendmicro.com.cn
AuthorDate: Fri, 12 Apr 2013 11:05:54 +0800
Committer: Ingo Molnar mi...@kernel.org
CommitDate: Fri, 12 Apr
From: Wei Yongjun
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun
---
kernel/events/core.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/kernel/events/core.c b/kernel
From: Wei Yongjun
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Introduce by commit c0d39e(f2fs: fix return values from validate superblock)
Signed-off-by: Wei Yongjun
---
fs/f2fs/super.c | 3 ++-
1 file changed, 2
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Introduce by commit c0d39e(f2fs: fix return values from validate superblock)
Signed-off-by: Wei Yongjun yongjun_
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
kernel/events/core.c | 4 +++-
1 file changed, 3 insertions(+), 1
From: Wei Yongjun
This removes an open coded simple_open() function and
replaces file operations references to the function
with simple_open() instead.
Signed-off-by: Wei Yongjun
---
drivers/misc/mei/debugfs.c | 10 ++
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git
From: Wei Yongjun
memory allocated by kmem_cache_alloc() should be freed using
kmem_cache_free(), not kfree().
Signed-off-by: Wei Yongjun
---
kernel/workqueue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index c273376..154aa12
From: Wei Yongjun yongjun_...@trendmicro.com.cn
memory allocated by kmem_cache_alloc() should be freed using
kmem_cache_free(), not kfree().
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
kernel/workqueue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel
From: Wei Yongjun yongjun_...@trendmicro.com.cn
This removes an open coded simple_open() function and
replaces file operations references to the function
with simple_open() instead.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/misc/mei/debugfs.c | 10 ++
1 file
From: Wei Yongjun
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun
---
drivers/block/drbd/drbd_main.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/block/drbd
From: Wei Yongjun
Those symbols only used within this file, and should be static.
Signed-off-by: Wei Yongjun
---
drivers/char/virtio_console.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index 13ad9b1
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Those symbols only used within this file, and should be static.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/char/virtio_console.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/char
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/block/drbd/drbd_main.c | 4 +---
1 file changed, 1
From: Wei Yongjun
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun
---
drivers/block/drbd/drbd_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/block/drbd/drbd_main.c b/drivers
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/block/drbd/drbd_main.c | 2 ++
1 file changed, 2 insertions
From: Wei Yongjun
Remove duplicated include.
Signed-off-by: Wei Yongjun
---
kernel/audit.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/audit.c b/kernel/audit.c
index 488f85f..9377913 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -58,7 +58,6 @@
#ifdef CONFIG_SECURITY
From: Wei Yongjun
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun
---
drivers/spi/spi-mxs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c
index
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/spi/spi-mxs.c | 1 +
1 file changed, 1 insertion(+)
diff
901 - 1000 of 1371 matches
Mail list logo