intel: avoid null pointer dereference
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Thu, 2 Feb 2017 22:57:29 +0000 (23:57 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Tue, 28 Feb 2017 13:38:09 +0000 (13:38 +0000)
commit5ee9cb4b4b6964bcd463b0490f3027e6ccfbf45a
treef68fc4433d362a1479b2061debf65b06ad9b7dab
parent1bf96af525436d3727d44d137fe922b491512b14
intel: avoid null pointer dereference

Move the dereference after the null check.
Fixes: 028715ee707469189505 ("intel: Avoid the need for most overflow
                              checks by using a scratch page.")
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
intel/intel_decode.c