commit | 8d4925e9a5e5fb360b091b94a9682e02dfbf8e2b | [log] [tgz] |
---|---|---|
author | Matt Redfearn <matt.redfearn@imgtec.com> | Mon Dec 21 15:21:42 2015 +0000 |
committer | Ralf Baechle <ralf@linux-mips.org> | Mon May 09 12:00:04 2016 +0200 |
tree | 77a653682e882660fb0085ffbe8f1e282760942e | |
parent | fa0c879ffc869e2597364c72080fd4756a96e99a [diff] |
MIPS: dma-default: Defend against NULL dev in massage_gfp_flags This patch ensures that the dev parameter is checked for NULL before it is dereferenced in massage_gfp_flags. If dev is NULL, then fall back setting the GFP flag requested and available. Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/11919/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>