diff options
author | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2022-12-28 19:17:01 +0300 |
---|---|---|
committer | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2023-01-27 10:01:41 +0300 |
commit | e6cebcc27519dcf1652e604c73b9fd4f416987c0 (patch) | |
tree | d2655ba5c878e053db01edb1a5682de9de7a8c14 /lib/syscall.c | |
parent | 6de4941c0215ac1ea54918ace695a28f4a5ca89b (diff) | |
download | linux-e6cebcc27519dcf1652e604c73b9fd4f416987c0.tar.xz |
bus: mhi: ep: Only send -ENOTCONN status if client driver is available
For the STOP and RESET commands, only send the channel disconnect status
-ENOTCONN if client driver is available. Otherwise, it will result in
null pointer dereference.
Cc: <stable@vger.kernel.org> # 5.19
Fixes: e827569062a8 ("bus: mhi: ep: Add support for processing command rings")
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://lore.kernel.org/r/20221228161704.255268-4-manivannan.sadhasivam@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Diffstat (limited to 'lib/syscall.c')
0 files changed, 0 insertions, 0 deletions