tty: atmel_serial: fix a potential NULL pointer dereference
commit c85be041 upstream. In case dmaengine_prep_dma_cyclic fails, the fix returns a proper error code to avoid NULL pointer dereference. Signed-off-by:Kangjie Lu <kjlu@umn.edu> Fixes: 34df42f5 ("serial: at91: add rx dma support") Acked-by:
Richard Genoud <richard.genoud@gmail.com> Cc: stable <stable@vger.kernel.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Lee Jones <lee.jones@linaro.org> Change-Id: Ic02bbabb497c145c1cbbec1e0d9867a237890d7f Signed-off-by:
Lee Jones <joneslee@google.com>
Loading
Please sign in to comment