diff options
| author | Stefan Herbrechtsmeier <[email protected]> | 2022-06-20 18:36:36 +0200 |
|---|---|---|
| committer | Michal Simek <[email protected]> | 2022-06-24 14:37:27 +0200 |
| commit | fe7090c7020694a7adcbfcac3bd7b5c3babea5be (patch) | |
| tree | c360e77b8ad73690ac883b1e87e7253ec5e908d4 | |
| parent | a13e0821da4abfd0d0cff853469ab8a195c5129f (diff) | |
firmware: zynqmp: Check if rx channel dev pointer is valid
Check if rx channel dev pointer is valid and not if the address of the
pointer is valid.
Signed-off-by: Stefan Herbrechtsmeier <[email protected]>
Link: https://lore.kernel.org/r/20220620163650.18756-1-stefan.herbrechtsmeier-oss@weidmueller.com
Signed-off-by: Michal Simek <[email protected]>
| -rw-r--r-- | drivers/firmware/firmware-zynqmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/firmware-zynqmp.c b/drivers/firmware/firmware-zynqmp.c index 0f0d2b07c00..341d7cf1358 100644 --- a/drivers/firmware/firmware-zynqmp.c +++ b/drivers/firmware/firmware-zynqmp.c @@ -92,7 +92,7 @@ static int ipi_req(const u32 *req, size_t req_len, u32 *res, size_t res_maxlen) res_maxlen > PMUFW_PAYLOAD_ARG_CNT) return -EINVAL; - if (!(zynqmp_power.tx_chan.dev) || !(&zynqmp_power.rx_chan.dev)) + if (!(zynqmp_power.tx_chan.dev) || !(zynqmp_power.rx_chan.dev)) return -EINVAL; debug("%s, Sending IPI message with ID: 0x%0x\n", __func__, req[0]); |
