summaryrefslogtreecommitdiff
path: root/drivers/rtc/interface.c
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2019-11-04 15:58:15 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-17 19:56:50 +0100
commit2f04249b33f4fe870d40271581f32aa06d5a3ebe (patch)
treec6daaedb8b20a14230e9f5bf8db06101aa3ba9d3 /drivers/rtc/interface.c
parenta44a5939a4097c98481a5b873b7bd9f387e56f59 (diff)
firmware: qcom: scm: Ensure 'a0' status code is treated as signed
commit ff34f3cce278a0982a7b66b1afaed6295141b1fc upstream. The 'a0' member of 'struct arm_smccc_res' is declared as 'unsigned long', however the Qualcomm SCM firmware interface driver expects to receive negative error codes via this field, so ensure that it's cast to 'long' before comparing to see if it is less than 0. Cc: <stable@vger.kernel.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/rtc/interface.c')
0 files changed, 0 insertions, 0 deletions