fsl/sata: correctly identify failed malloc
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Sat, 15 Apr 2017 13:31:53 +0000 (15:31 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 18 Apr 2017 14:29:24 +0000 (10:29 -0400)
commit7a931b958e4f942b16d3f5d31dc4c0982fa186c8
treede04bc52d19a3ef1fc7858d73b91312fae1381d1
parent0e0de24b07b8314ea0cc247a89b722c2230e4b0a
fsl/sata: correctly identify failed malloc

After allocating sata->cmd_hdr_tbl_offset we have to check
this variable and not variable sata.

The problem was indicated by cppcheck.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/block/fsl_sata.c