[PATCH v2 4/4] media: platform: sti: fix possible object reference leak

2019-02-12 Thread Wen Yang
. This patch fixes those two issues. Fixes: fc4e009c6c98 ("[media] stih-cec: add CEC notifier support") Suggested-by: Hans Verkuil (hansverk) Signed-off-by: Wen Yang Cc: Hans Verkuil (hansverk) Cc: Benjamin Gaignard Cc: Mauro Carvalho Chehab Cc: Wen Yang Cc: linux-media@vger.kernel.org

[PATCH v2 3/4] media: s5p-cec: fix possible object reference leak

2019-02-12 Thread Wen Yang
those drivers need to be fixed. Fixes: a93d429b51fb ("[media] s5p-cec: add cec-notifier support, move out of staging") Suggested-by: Hans Verkuil (hansverk) Signed-off-by: Wen Yang Cc: Hans Verkuil (hansverk) Cc: Hans Verkuil Cc: Marek Szyprowski Cc: Mauro Carvalho Chehab Cc: We

[PATCH v2 2/4] media: tegra-cec: fix possible object reference leak

2019-02-12 Thread Wen Yang
. This patch fixes those two issues. Fixes: 9d2d60687c9a ("media: tegra-cec: add Tegra HDMI CEC driver") Suggested-by: Hans Verkuil (hansverk) Signed-off-by: Wen Yang Cc: Hans Verkuil (hansverk) Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Cc: Thierry Reding Cc: Jonathan Hunter Cc: We

[PATCH v2 1/4] media: platform: meson-ao-cec: fix possible object reference leak

2019-02-12 Thread Wen Yang
. This patch fixes those two issues. Fixes: 7ec2c0f72cb1 ("media: platform: Add Amlogic Meson AO CEC Controller driver") Suggested-by: Hans Verkuil (hansverk) Signed-off-by: Wen Yang Cc: Hans Verkuil (hansverk) Cc: Neil Armstrong Cc: Mauro Carvalho Chehab Cc: Kevin Hilman Cc: Wen Yang

[PATCH] media: siano: Use kmemdup instead of duplicating its function

2018-12-06 Thread Wen Yang
kmemdup has implemented the function that kmalloc() + memcpy(). We prefer to kmemdup rather than code opened implementation. This issue was detected with the help of coccinelle. Signed-off-by: Wen Yang CC: Mauro Carvalho Chehab CC: Tomoki Sekiyama CC: linux-media@vger.kernel.org CC: linux-ker