commit | 2fbf6d61664ba04d4c7872cbb46720e49264cf3a | [log] [tgz] |
---|---|---|
author | Haneen Mohammed <hamohammed.sa@gmail.com> | Thu Feb 11 21:34:40 2016 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Feb 11 20:00:30 2016 -0800 |
tree | e61fc6db3455e664f2b9480dd3750cb62b3fedc3 | |
parent | 27f31cf9f7235cb3aa10860bf4fde5df6893bf52 [diff] |
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>