]> git.karo-electronics.de Git - linux-beck.git/commit
Staging: vt6655: Add check dma_mapping_error
authorHaneen Mohammed <hamohammed.sa@gmail.com>
Thu, 11 Feb 2016 18:34:40 +0000 (21:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 04:00:30 +0000 (20:00 -0800)
commit2fbf6d61664ba04d4c7872cbb46720e49264cf3a
treee61fc6db3455e664f2b9480dd3750cb62b3fedc3
parent27f31cf9f7235cb3aa10860bf4fde5df6893bf52
Staging: vt6655: Add check dma_mapping_error

This patch checks for dma_mapping_error() after using dma_map_single.
If the dma map fails we release skb buff allocated by dev_alloc_skb() to
avoid possible causes of resource leak.

Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c