]> git.dujemihanovic.xyz Git - linux.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)
committerHans de Goede <hdegoede@redhat.com>
Thu, 12 Jan 2023 18:12:02 +0000 (19:12 +0100)
commitc965daac370f08a9b71d573a71d13cda76f2a884
treea4a753a86f55102f138c92b017b489d1be4598fc
parentae0fa0a3126a86c801c3220fcd8eefe03aa39f3e
platform/surface: aggregator: Add missing call to ssam_request_sync_free()

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: c167b9c7e3d6 ("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>
drivers/platform/surface/aggregator/controller.c