crypto: xilinx: Handle AES PM API return status
authorRajan Vaja <rajan.vaja@xilinx.com>
Fri, 1 May 2020 10:52:34 +0000 (03:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 May 2020 10:35:07 +0000 (12:35 +0200)
commit1d9000262b3b80ef6675f35808856073e51be807
treeb8e6581629e6f19d3f5816699fc48ee75d2d1c9a
parent56a9a8068637b624f6724f58c6137f4410616558
crypto: xilinx: Handle AES PM API return status

Return value of AES PM API is not handled which may result in
unexpected value of "status" in zynqmp_pm_aes_engine().

Consider "status" value as valid only if AES PM API is successful.

Fixes: bc86f9c54616 ("firmware: xilinx: Remove eemi ops for aes engine")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Link: https://lore.kernel.org/r/1588330354-27942-1-git-send-email-rajan.vaja@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/xilinx/zynqmp-aes-gcm.c