Both Niklas and myself added checks for these and I merged both patches, let's drop one of them. Reported-by: Niklas Cassel <niklas.cassel@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>