Re: [PATCH]sched/rt: Do not try to push tasks if pinned task switches to RT

2013-01-29 Thread Libo Chen
From: Libo Chen libo.c...@huawei.com On 2013-1-29 4:23, Kirill Tkhai wrote: Just switched pinned task is not able to be pushed. If the rq had had several RT tasks before they have already been considered as candidates to be pushed (or pulled). Signed-off-by: Kirill V Tkhai tk...@yandex.ru

[PATCH] net: xilinx: fix memleak

2013-08-25 Thread Libo Chen
decrease device_node refcount np1 in err case. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c b/drivers/net/ethernet

[PATCH] edac: cell_edac: fix missing of_node_put

2013-08-26 Thread Libo Chen
decrease device_node refcount np after task completion Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/edac/cell_edac.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/edac/cell_edac.c b/drivers/edac/cell_edac.c index c2eaf33..493dc30 100644

[PATCH] power: max8925: fix missing of_node_put

2013-08-26 Thread Libo Chen
decrease np device_node refcount after task completion Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/power/max8925_power.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/power/max8925_power.c b/drivers/power/max8925_power.c index 0ee1e14..b4513f2

[PATCH] usb: ohci-at91: remove unnecessary dev_set_drvdata()

2013-08-26 Thread Libo Chen
Unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/host/ohci-at91.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git

[PATCH 4/4] usb: renesas_usbhs: use platform_{get,set}_drvdata()

2013-08-27 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/renesas_usbhs/common.c |2 +- 1

[PATCH 2/4] usb: r8a66597-hcd: use platform_{get,set}_drvdata()

2013-08-27 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/host/r8a66597-hcd.c |4 ++-- 1

[PATCH 3/4] usb: phy-tegra-usb: use platform_{get,set}_drvdata()

2013-08-27 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/phy/phy-tegra-usb.c |2 +- 1 files

[PATCH 1/4] usb: fotg210-udc: use platform_{get,set}_drvdata()

2013-08-27 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/gadget/fotg210-udc.c |4 ++-- 1

[PATCH 0/4] usb: use platform_{get,set}_drvdata()

2013-08-27 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Libo Chen (4): usb: fotg210-udc: use platform_{get,set}_drvdata() usb: r8a66597-hcd: use platform_

Re: [PATCH 2/4] usb: r8a66597-hcd: use platform_{get,set}_drvdata()

2013-08-28 Thread Libo Chen
On 2013/8/28 12:36, Greg KH wrote: On Tue, Aug 27, 2013 at 04:10:22PM +0800, Libo Chen wrote: Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with pdev-dev, so we can directly pass a struct platform_device

[PATCH v4 1/7] net: fsl_pq_mdio: use platform_{get,set}_drvdata()

2013-08-19 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/freescale/fsl_pq_mdio.c |2

[PATCH v4 3/7] net: fec_mpc52xx_phy: use platform_{get,set}_drvdata()

2013-08-19 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with of-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/freescale/fec_mpc52xx_phy.c

[PATCH v4 5/7] net: sunhme: use platform_{get,set}_drvdata()

2013-08-19 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with of-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/sun/sunhme.c |2 +- 1 files

[PATCH v4 4/7] net: sunbmac: use platform_{get,set}_drvdata()

2013-08-19 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with of-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/sun/sunbmac.c |2 +- 1 files

[PATCH v4 7/7] net: davinci_mdio: use platform_{get,set}_drvdata()

2013-08-19 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com Acked-by: Mugunthan V N mugunthan...@ti.com Acked-by: Lad

[PATCH 2/8] net: ucc_geth: remove unnecessary dev_set_drvdata()

2013-08-21 Thread Libo Chen
Unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/freescale/ucc_geth.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff

[PATCH 3/8] net: fec_mpc52xx_phy: remove unnecessary dev_set_drvdata()

2013-08-21 Thread Libo Chen
Unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/freescale/fec_mpc52xx_phy.c |1 - 1 files changed, 0 insertions(+), 1 deletions

[PATCH 1/8] net: fsl_pq_mdio: remove unnecessary dev_set_drvdata()

2013-08-21 Thread Libo Chen
Unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/freescale/fsl_pq_mdio.c |2 -- 1 files changed, 0 insertions(+), 2 deletions

[PATCH 6/8] net: xilinx_emaclite: remove unnecessary dev_set_drvdata()

2013-08-21 Thread Libo Chen
Unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/xilinx/xilinx_emaclite.c |1 - 1 files changed, 0 insertions(+), 1 deletions

[PATCH 4/8] net: sunbmac: remove unnecessary dev_set_drvdata()

2013-08-21 Thread Libo Chen
Unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/sun/sunbmac.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git

[PATCH 5/8] net: sunhme: remove unnecessary dev_set_drvdata()

2013-08-21 Thread Libo Chen
Unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/sun/sunhme.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git

[PATCH 8/8] net: emac: remove unnecessary dev_set_drvdata()

2013-08-21 Thread Libo Chen
Unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/ibm/emac/core.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff

[PATCH 7/8] net: davinci_mdio: remove unnecessary dev_set_drvdata()

2013-08-21 Thread Libo Chen
Unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/ti/davinci_mdio.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff

[PATCH 0/2] net: can: use platform_set_drvdata()

2013-08-21 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_set_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Libo Chen (2): net: can: at91_can: use platform_set_drvdata() net: can: flexcan: use platform_set_drvdata

[PATCH 2/2] net: can: flexcan: use platform_set_drvdata()

2013-08-21 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_set_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/can/flexcan.c |2 +- 1 files changed, 1

[PATCH] net: phy: mdio-octeon: use platform_set_drvdata()

2013-08-21 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_set_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/phy/mdio-octeon.c |2 +- 1 files changed

[PATCH] net: irda: pxaficp_ir: use platform_set_drvdata()

2013-08-21 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using deva_set_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/irda/pxaficp_ir.c |2 +- 1 files changed

[PATCH 1/2] net: can: at91_can: use platform_set_drvdata()

2013-08-21 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_set_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/can/at91_can.c |2 +- 1 files changed, 1

Re: [PATCH] iommu: remove unnecessary platform_set_drvdata()

2013-08-21 Thread Libo Chen
On 2013/8/22 9:53, Jingoo Han wrote: The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han jg1@samsung.com --- It looks good. Acked-by: Libo Chen

[PATCH RESEND 0/8] use platform_{get,set}_drvdata()

2013-08-13 Thread Libo Chen
: this version add modify record about dev_set_drvdata(). Libo Chen (8): net: fsl_pq_mdio: use platform_{get,set}_drvdata() net: ucc_geth: use platform_{get,set}_drvdata() net: fec_mpc52xx_phy: use platform_{get,set}_drvdata() net: fs_enet: remove unnecessary dev_set_drvdata() net

[PATCH RESEND 2/8] net: ucc_geth: use platform_{get,set}_drvdata()

2013-08-13 Thread Libo Chen
-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/freescale/ucc_geth.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c index 3c43dac..5930c39 100644 --- a/drivers/net

[PATCH RESEND 3/8] net: fec_mpc52xx_phy: use platform_{get,set}_drvdata()

2013-08-13 Thread Libo Chen
-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/freescale/fec_mpc52xx_phy.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/freescale/fec_mpc52xx_phy.c b/drivers/net/ethernet/freescale/fec_mpc52xx_phy.c index 360a578..e052890 100644

[PATCH RESEND 4/8] net: fs_enet: remove unnecessary dev_set_drvdata()

2013-08-13 Thread Libo Chen
unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c |1 - 1 files changed, 0 insertions(+), 1

[PATCH RESEND 6/8] net: sunhme: use platform_{get,set}_drvdata()

2013-08-13 Thread Libo Chen
-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/sun/sunhme.c |8 +++- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/sun/sunhme.c b/drivers/net/ethernet/sun/sunhme.c index 171f5b0..a111f29 100644 --- a/drivers/net/ethernet/sun/sunhme.c +++ b

[PATCH RESEND 5/8] net: sunbmac: use platform_{get,set}_drvdata()

2013-08-13 Thread Libo Chen
-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/sun/sunbmac.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/sun/sunbmac.c b/drivers/net/ethernet/sun/sunbmac.c index 0d43fa9..34b94cc 100644 --- a/drivers/net/ethernet/sun/sunbmac.c +++ b

[PATCH RESEND 8/8] net: davinci_mdio: use platform_{get,set}_drvdata()

2013-08-13 Thread Libo Chen
-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/ti/davinci_mdio.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c index 16ddfc3..2249b2c 100644 --- a/drivers/net/ethernet/ti

[PATCH RESEND 7/8] net: xilinx_emaclite: use platform_{get,set}_drvdata()

2013-08-13 Thread Libo Chen
-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/xilinx/xilinx_emaclite.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c index fd4dbda..4c619ea 100644

[PATCH RESEND 1/8] net: fsl_pq_mdio: use platform_{get,set}_drvdata()

2013-08-13 Thread Libo Chen
-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/freescale/fsl_pq_mdio.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/freescale/fsl_pq_mdio.c b/drivers/net/ethernet/freescale/fsl_pq_mdio.c index c93a056..995a3ab 100644 --- a/drivers/net

Re: [PATCH RESEND 1/8] net: fsl_pq_mdio: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
On 2013/8/15 2:54, Sergei Shtylyov wrote: Hello. On 08/14/2013 07:39 AM, Libo Chen wrote: We can use the wrapper functions platform_{get,set}_drvdata() instead of dev_{get,set}_drvdata() with pdev-dev, it is convenient for user. Also, unnecessary dev_set_drvdata() is removed, because

[PATCH v3 4/7] net: sunbmac: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with op-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/sun/sunbmac.c |2 +- 1 files

[PATCH v3 3/7] net: fec_mpc52xx_phy: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with of-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/freescale/fec_mpc52xx_phy.c

[PATCH v3 1/7] net: fsl_pq_mdio: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/freescale/fsl_pq_mdio.c |2

[PATCH v3 7/7] net: davinci_mdio: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/ti/davinci_mdio.c |3 +-- 1

[PATCH v3 6/7] net: xilinx_emaclite: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with of_dev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/xilinx/xilinx_emaclite.c

[PATCH v3 5/7] net: sunhme: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with pdev-dev, so we can directly pass a struct platform_device. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/sun/sunhme.c |6 +++--- 1

Re: [PATCH v3 6/7] net: xilinx_emaclite: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
On 2013/8/16 6:23, David Miller wrote: From: Libo Chen clbchenlibo.c...@huawei.com Date: Thu, 15 Aug 2013 21:01:47 +0800 Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with of_dev-dev, so we can directly pass

[PATCH v3 RESEND 5/7] net: sunhme: use platform_{get,set}_drvdata()

2013-08-15 Thread Libo Chen
-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/sun/sunhme.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/ethernet/sun/sunhme.c b/drivers/net/ethernet/sun/sunhme.c index 171f5b0..b90d311 100644 --- a/drivers/net/ethernet/sun/sunhme.c +++ b/drivers/net

Q: use vlan in container

2013-11-27 Thread Libo Chen
Hello LXC experts, I meet a problem. When using vlan as network device in suse11 system container, I can not use halt to stop this container. It hung on eth0 is still used from interfaces eth0 in cycle. The config file: lxc.network.type = vlan lxc.network.flags = up lxc.network.link =

Re: Q: use vlan in container

2013-11-28 Thread Libo Chen
On 2013/11/29 13:05, Serge Hallyn wrote: Quoting Libo Chen (clbchenlibo.c...@huawei.com): Hello LXC experts, I meet a problem. When using vlan as network device in suse11 system container, I can not use halt to stop this container. It hung on eth0 is still used from interfaces eth0

Re: Q: use vlan in container

2013-11-29 Thread Libo Chen
On 2013/11/29 22:18, Serge Hallyn wrote: Quoting Libo Chen (clbchenlibo.c...@huawei.com): On 2013/11/29 13:05, Serge Hallyn wrote: Quoting Libo Chen (clbchenlibo.c...@huawei.com): Hello LXC experts, I meet a problem. When using vlan as network device in suse11 system container, I can

[PATCH 0/2] i2c: fix two wrong mem release

2013-05-06 Thread Libo Chen
fix two wrong mem release Libo Chen (2): i2c: i2c-bfin-twi:don`t free peripheral before it`s init successful i2c: pxa: no need release_mem_region before request_mem_region successful drivers/i2c/busses/i2c-bfin-twi.c |2 +- drivers/i2c/busses/i2c-pxa.c |5 +++-- 2 files

[PATCH 2/2] i2c: pxa: no need release_mem_region before request_mem_region successful

2013-05-06 Thread Libo Chen
move release_mem_region above kfree(i2c) below clk_put(i2c-clk) Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/i2c/busses/i2c-pxa.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index ea6d45d

[PATCH 1/2] i2c: i2c-bfin-twi: don`t free peripheral before it`s init successful

2013-05-06 Thread Libo Chen
down out_error_no_irq. When platform_get_irq fail, no need to free peripheral Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/i2c/busses/i2c-bfin-twi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-bfin-twi.c b/drivers/i2c/busses/i2c

Re: [PATCH 2/2] i2c: pxa: no need release_mem_region before request_mem_region successful

2013-05-06 Thread Libo Chen
On 2013/5/7 10:59, Gu Zheng wrote: Hi libo, On 05/06/2013 09:11 PM, Libo Chen wrote: move release_mem_region above kfree(i2c) below clk_put(i2c-clk) Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/i2c/busses/i2c-pxa.c |5 +++-- 1 files changed, 3 insertions(+), 2

[PATCH 0/4] usb: fix four memleak

2013-05-08 Thread Libo Chen
fix four goto wrong tag, avoid memleak Libo Chen (4): usb: ehci-s5p: fix memleak when fallback to pdata usb: isp1760-if: fix memleak when platform_get_resource fail usb: ohci: fix goto wrong tag in err case usb: tilegx: fix memleak when create hcd fail drivers/usb/host/ehci-s5p.c

[PATCH 4/4] usb: tilegx: fix memleak when create hcd fail

2013-05-08 Thread Libo Chen
From: Libo Chen chenlib...@gmail.com When usb_create_hcd fail, we should call gxio_usb_host_destroy Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/host/ohci-tilegx.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ohci-tilegx.c b

[PATCH 2/4] usb: isp1760-if: fix memleak when platform_get_resource fail

2013-05-08 Thread Libo Chen
From: Libo Chen chenlib...@gmail.com When platform_get_resource fail, we should release_mem_region Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/host/isp1760-if.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/usb/host/isp1760-if.c b/drivers

[PATCH 1/4] usb: ehci-s5p: fix memleak when fallback to pdata

2013-05-08 Thread Libo Chen
From: Libo Chen chenlib...@gmail.com When devm_usb_get_phy fail, we should free hcd Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/host/ehci-s5p.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/usb/host/ehci-s5p.c b/drivers/usb/host/ehci-s5p.c

[PATCH 3/4] usb: ohci: fix goto wrong tag in err case

2013-05-08 Thread Libo Chen
From: Libo Chen chenlib...@gmail.com fix goto wrong tag in usb_hcd_nxp_probe Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/host/ohci-nxp.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ohci-nxp.c b/drivers/usb/host/ohci

[PATCH RESEND 3/4] usb: ohci: fix goto wrong tag in err case

2013-05-09 Thread Libo Chen
fix goto wrong tag in usb_hcd_nxp_probe Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/host/ohci-nxp.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/host/ohci-nxp.c b/drivers/usb/host/ohci-nxp.c index f4988fb..eb294a9 100644

[PATCH RESEND 1/4] usb: ehci-s5p: fix memleak when devm_usb_get_phy fail

2013-05-09 Thread Libo Chen
When devm_usb_get_phy fail, we should free hcd Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/host/ehci-s5p.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/usb/host/ehci-s5p.c b/drivers/usb/host/ehci-s5p.c index 6357752..3fbab58 100644

[PATCH RESEND 2/4] usb: isp1760-if: fix memleak when platform_get_resource fail

2013-05-09 Thread Libo Chen
When platform_get_resource fail, we should release_mem_region Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/host/isp1760-if.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/usb/host/isp1760-if.c b/drivers/usb/host/isp1760-if.c index bbb791b

[PATCH RESEND 0/4] usb: fix four memleak

2013-05-09 Thread Libo Chen
change address from Libo Chen chenlib...@gmail.com to Libo Chen libo.c...@huawei.com fix four goto wrong tag, avoid memleak Libo Chen (4): usb: ehci-s5p: fix memleak when devm_usb_get_phy fail usb: isp1760-if: fix memleak when platform_get_resource fail usb: ohci: fix goto wrong tag

[PATCH RESEND 4/4] usb: tilegx: fix memleak when create hcd fail

2013-05-09 Thread Libo Chen
When usb_create_hcd fail, we should call gxio_usb_host_destroy Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/host/ohci-tilegx.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/ohci-tilegx.c b/drivers/usb/host/ohci-tilegx.c index

[PATCH v2 0/2] i2c: fix two wrong mem release

2013-05-09 Thread Libo Chen
fix two wrong mem release * Changelog from v1: * exchange out_error_no_irq and out_error_pin_mux suggested by Sonic sonic.zh...@analog.com * add some new tag , make code cleanly Libo Chen (2): i2c: i2c-bfin-twi: don`t free peripheral before it init successful i2c: pxa: no need

[PATCH v2 2/2] i2c: pxa: no need release_mem_region before request_mem_region successful

2013-05-09 Thread Libo Chen
When kzalloc fail, there is no reason to release_mem_region fix confuse tag, add new tag: emem, eirq, edt and make it cleanly Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/i2c/busses/i2c-pxa.c | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) diff --git

[PATCH v2 1/2] i2c: i2c-bfin-twi: don`t free peripheral before it init successful

2013-05-09 Thread Libo Chen
down out_error_no_irq. When platform_get_irq fail, no need to free peripheral Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/i2c/busses/i2c-bfin-twi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-bfin-twi.c b/drivers/i2c/busses/i2c

Re: [PATCH v2 1/2] i2c: i2c-bfin-twi: don`t free peripheral before it init successful

2013-05-09 Thread Libo Chen
On 2013/5/9 16:33, Zhang, Sonic wrote: Hi Libo, -Original Message- From: Libo Chen [mailto:libo.c...@huawei.com] Sent: Thursday, May 09, 2013 4:27 PM To: Zhang, Sonic; w...@the-dreams.de Cc: uclinux-dist-de...@blackfin.uclinux.org; linux-kernel@vger.kernel.org; linux- i

Re: [PATCH RESEND 4/4] usb: tilegx: fix memleak when create hcd fail

2013-05-09 Thread Libo Chen
On 2013/5/10 2:02, Chris Metcalf wrote: On 5/9/2013 2:08 AM, Libo Chen wrote: When usb_create_hcd fail, we should call gxio_usb_host_destroy Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/host/ohci-tilegx.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions

Re: [PATCH RESEND 4/4] usb: tilegx: fix memleak when create hcd fail

2013-05-09 Thread Libo Chen
On 2013/5/10 9:09, Libo Chen wrote: On 2013/5/10 2:02, Chris Metcalf wrote: On 5/9/2013 2:08 AM, Libo Chen wrote: When usb_create_hcd fail, we should call gxio_usb_host_destroy Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/host/ohci-tilegx.c |7 +-- 1 files changed

Re: [PATCH 10/24] drivers/mfd/lpc_ich: Convert to module_pci_driver

2013-06-17 Thread Libo Chen
On 2013/6/18 7:30, Samuel Ortiz wrote: Hi Libo, On Mon, May 27, 2013 at 10:28:56AM +0800, Libo Chen wrote: use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/mfd/lpc_ich.c | 13 + 1 files changed, 1

[PATCH] tpm_tis: fix missing platform_driver_unregister

2013-05-02 Thread Libo Chen
Add missing unregister tis_drv after register pdev fail Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/char/tpm/tpm_tis.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index 8a41b6b..d5b0af4

[PATCH 0/2] msm: iommu: fix two mistake

2013-05-05 Thread Libo Chen
From: libo.c...@huawei.com Sorry, I am not sure who this patch should be send to. Libo Chen (2): msm: iommu: add missing platform_device_unregister() in err case msm: iommu: no need kfree before kzalloc successful drivers/iommu/msm_iommu_dev.c | 8 +--- 1 file changed, 5 insertions

[PATCH 1/2] msm: iommu: add missing platform_device_unregister() in err case

2013-05-05 Thread Libo Chen
From: libo.c...@huawei.com We have registered msm_iommu_driver first, and need unregister it when registered msm_iommu_ctx_driver fail Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/iommu/msm_iommu_dev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu

[PATCH 2/2] msm: iommu: no need kfree before kzalloc successful

2013-05-05 Thread Libo Chen
From: libo.c...@huawei.com We don`t need to kfree drvdata before kzalloc successful Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/iommu/msm_iommu_dev.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/msm_iommu_dev.c b/drivers/iommu

Re: [PATCH v2] scsi: megaraid: check kzalloc

2013-06-04 Thread Libo Chen
we should check kzalloc, avoid to hit oops Change from v1: - put kzalloc outside of mutex Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/scsi/megaraid.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c

Re: [PATCH v2] scsi: megaraid: check kzalloc

2013-06-04 Thread Libo Chen
On 2013/6/4 20:14, Tomas Henzl wrote: On 06/04/2013 11:33 AM, Libo Chen wrote: we should check kzalloc, avoid to hit oops Change from v1: - put kzalloc outside of mutex Signed-off-by: Libo Chen libo.c...@huawei.com Your patch looks fine to me: Acked-by: Tomas Henzl the...@redhat.com

Re: [PATCH RESEND] scsi: megaraid: check kzalloc

2013-05-29 Thread Libo Chen
On 2013/5/29 23:03, Tomas Henzl wrote: On 05/24/2013 11:40 AM, Libo Chen wrote: we should check kzalloc, avoid to hit oops Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/scsi/megaraid.c |4 1 files changed, 4 insertions(+), 0 deletions(-) instead of checking scmd

[PATCH RESEND 1/2] mtd: bcm47: convert kzalloc to avoid invalid access

2013-05-29 Thread Libo Chen
mtd is just member of bcm47xxsflash, so we should free bcm47xxsflash not its member. So I use devm_kazlloc instead of kazlloc to avoid it. * Changelog: convert to devm_kzalloc Signed-off-by: Libo chen libo.c...@huawei.com Suggested-by: Andy Shevchenko andy.shevche...@gmail.com --- drivers

[PATCH RESEND 2/2] mtd: bcm47: convert to module_platform_driver instead of init/exit

2013-05-29 Thread Libo Chen
convert to module_platform_driver instead of init/exit Suggested-by: Andy Shevchenko andy.shevche...@gmail.com Signed-off-by: Libo chen libo.c...@huawei.com --- drivers/mtd/devices/bcm47xxsflash.c | 20 +--- 1 files changed, 1 insertions(+), 19 deletions(-) diff --git

Re: [PATCH RESEND] scsi: megaraid: check kzalloc

2013-05-29 Thread Libo Chen
On 2013/5/30 9:38, Libo Chen wrote: On 2013/5/29 23:03, Tomas Henzl wrote: On 05/24/2013 11:40 AM, Libo Chen wrote: we should check kzalloc, avoid to hit oops Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/scsi/megaraid.c |4 1 files changed, 4 insertions(+), 0

Re: [PATCH] scsi: Introduce a help function local_time_seconds() to simplify the getting time stamp operation

2013-05-29 Thread Libo Chen
On 2013/5/29 17:33, Gu Zheng wrote: From 4d4caa16f3886ae910ad6dfe13353fc836f546cc Mon Sep 17 00:00:00 2001 From: Gu Zheng guz.f...@cn.fujitsu.com Date: Wed, 29 May 2013 17:34:22 +0900 Subject: [PATCH] driver/scsi: Introduce a help function local_time_seconds() to simplify the getting time

[PATCH] menuconfig: print more info for symbol without prompts

2013-04-26 Thread Libo Chen
is an example: before: Symbol: GENERIC_SMP_IDLE_THREAD [=y] Type : boolean Selected by: X86 [=y] after: Symbol: GENERIC_SMP_IDLE_THREAD [=y] Type : boolean Defined at arch/Kconfig:213 Selected by: X86 [=y] Signed-off-by: Weng Meiling wengmeiling.w...@huawei.com Signed-off-by: Libo Chen libo.c

Re: [PATCH 4/4] usb: tilegx: fix memleak when create hcd fail

2013-05-16 Thread Libo Chen
Hi Greg, On 2013/5/17 8:34, Greg KH wrote: On Thu, May 09, 2013 at 12:58:11PM +0800, Libo Chen wrote: From: Libo Chen chenlib...@gmail.com When usb_create_hcd fail, we should call gxio_usb_host_destroy Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/host/ohci-tilegx.c

Re: [PATCH] usb: omap2430: fix memleak in err case

2013-05-16 Thread Libo Chen
On 2013/5/15 19:55, Sergei Shtylyov wrote: Hello. On 15-05-2013 5:35, Libo Chen wrote: when omap_get_control_dev fail, we should release relational platform_device s/fail/fails/, s/relational/related/? Signed-off-by: Libo Chen libo.c...@huawei.com You've posted

[PATCH] cdrom: gdrom: fix device number leak

2013-05-17 Thread Libo Chen
without this patch, gdrom_major will leak when gd.cd_info alloc faild Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/cdrom/gdrom.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c index 4afcb65..5980cb9 100644

[PATCH] MIPS: drivers: fix clk leak

2013-05-17 Thread Libo Chen
when gptu_r32 fail, we should put clk before return Signed-off-by: Libo Chen libo.c...@huawei.com --- arch/mips/lantiq/xway/gptu.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/mips/lantiq/xway/gptu.c b/arch/mips/lantiq/xway/gptu.c index 9861c86..4fa577c 100644

Re: [PATCH v2 0/2] i2c: fix two wrong mem release

2013-05-18 Thread Libo Chen
于 2013-5-17 17:43, Wolfram Sang 写道: On Thu, May 09, 2013 at 04:27:22PM +0800, Libo Chen wrote: fix two wrong mem release * Changelog from v1: * exchange out_error_no_irq and out_error_pin_mux suggested by Sonicsonic.zh...@analog.com * add some new tag , make code cleanly Thanks

[PATCH] cdrom: gdrom: fix device number leak

2013-05-19 Thread Libo Chen
repost with Jens Axboe ax...@kernel.dk added suggest by Tejun Heo t...@kernel.org without this patch, gdrom_major will leak when gd.cd_info alloc faild Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/cdrom/gdrom.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[PATCH 1/3] x86: msi-laptop: fix memleak

2013-05-19 Thread Libo Chen
1. fix two visible mistakes: * when load_scm_model_init faild, we should call platform_device_del(msipf_device) * msipf_attribute_group should be remove in err case 2. change some tags, give them real meaning. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/platform/x86/msi

[PATCH 0/3] fix x86 driver memleak

2013-05-19 Thread Libo Chen
fix memleak or invalite point acesss about x86 platform drivers Libo Chen (3): x86: msi-laptop: fix memleak x86: asus-laptop: fix invalid point access x86 platform drivers: fix gpio leak drivers/platform/x86/asus-laptop.c | 1 - drivers/platform/x86/intel_pmic_gpio.c | 5

[PATCH 3/3] x86 platform drivers: fix gpio leak

2013-05-19 Thread Libo Chen
when request_irq faild, we should release gpiochip Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/platform/x86/intel_pmic_gpio.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 = 100755 drivers/platform/x86/intel_pmic_gpio.c diff --git a/drivers

[PATCH 2/3] x86: asus-laptop: fix invalid point access

2013-05-19 Thread Libo Chen
asus-name is null or point to const string,so it is not suitable to kfree it. Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/platform/x86/asus-laptop.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index

[PATCH 05/19] drivers/ust/renesas_usbhs: add missing platform_driver owner

2013-05-20 Thread Libo Chen
set the owner of platform_driver, to ensure that the caller of driver holds a module refernece Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/renesas_usbhs/common.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/usb/renesas_usbhs/common.c b

[PATCH 11/19] drivers/net/ethernet/natsemi: add missing platform_driver owner

2013-05-20 Thread Libo Chen
set the owner of platform_driver, to ensure that the caller of driver holds a module refernece Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/ethernet/natsemi/xtsonic.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/ethernet/natsemi/xtsonic.c

[PATCH 04/19] drivers/usb/dwc3: add missing platform_driver owner

2013-05-20 Thread Libo Chen
set the owner of platform_driver, to ensure that the caller of driver holds a module refernece Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/dwc3/core.c|1 + drivers/usb/dwc3/dwc3-exynos.c |1 + drivers/usb/dwc3/dwc3-omap.c |1 + 3 files changed, 3

[PATCH 07/19] drivers/usb/gadget: add missing platform_driver owner

2013-05-20 Thread Libo Chen
set the owner of platform_driver, to ensure that the caller of driver holds a module refernece Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/usb/gadget/r8a66597-udc.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/usb/gadget/r8a66597-udc.c b/drivers

[PATCH 16/19] drivers/net/wan: add missing platform_driver owner

2013-05-20 Thread Libo Chen
set the owner of platform_driver, to ensure that the caller of driver holds a module refernece Signed-off-by: Libo Chen libo.c...@huawei.com --- drivers/net/wan/ixp4xx_hss.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/wan/ixp4xx_hss.c b/drivers/net/wan

[PATCH 14/19] drivers/net/wireless/brcm80211/brcmfmac: add missing platform_driver owner

2013-05-20 Thread Libo Chen
set the owner of platform_driver, to ensure that the caller of driver holds a module refernece Signed-off-by: Libo Chen libo.c...@huawei.com --- .../net/wireless/brcm80211/brcmfmac/bcmsdh_sdmmc.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless

  1   2   3   4   5   >