]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
thunderbolt: Use the actual buffer in tb_async_error()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 29 Apr 2022 14:10:17 +0000 (17:10 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 23 Nov 2022 14:10:56 +0000 (15:10 +0100)
commitaab23c93a0b7fea8ed133528cf8872b1c9e739f9
tree353d192b61a6198922373064ffc045e477a6ca36
parent5496875711bb6cec105cb65ac16f9d4c39c3f5ea
thunderbolt: Use the actual buffer in tb_async_error()

BugLink: https://bugs.launchpad.net/bugs/1991840
commit eb100b8fa8e8b59eb3e5fc7a5fd4a1e3c5950f64 upstream.

The received notification packet is held in pkg->buffer and not in pkg
itself. Fix this by using the correct buffer.

Fixes: 81a54b5e1986 ("thunderbolt: Let the connection manager handle all notifications")
Cc: stable@vger.kernel.org
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/thunderbolt/ctl.c