]> git.baikalelectronics.ru Git - kernel.git/commit
platform/surface: aggregator: Add missing call to ssam_request_sync_free()
authorMaximilian Luz <luzmaximilian@gmail.com>
Tue, 20 Dec 2022 17:56:07 +0000 (18:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:58:32 +0000 (11:58 +0100)
commitd54c7e30f17480b1b03a0db3ce97ec63a069c547
tree6ab9a0cf88caa745f651b0e668048c383c80f9ef
parentec7e61da2d21aaf94fde73a4a8484c1a3d97a0e2
platform/surface: aggregator: Add missing call to ssam_request_sync_free()

[ Upstream commit 600de7fc18347ffd3a4606ec03d249fa8e4cfb9a ]

Although rare, ssam_request_sync_init() can fail. In that case, the
request should be freed via ssam_request_sync_free(). Currently it is
leaked instead. Fix this.

Fixes: 2ef0797232f5 ("platform/surface: Add Surface Aggregator subsystem")
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20221220175608.1436273-1-luzmaximilian@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/surface/aggregator/controller.c