]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 10:04:52 +0000 (12:04 +0200)
commitc7e5a90eee5f990dfafc3026f9fed38b0f36e8bb
tree40154fcd7eb305e09973cf7f539bb91c4d12adff
parentcb2684e906f959b25cffd76a0f330780676c8a95
thunderbolt: Use the actual buffer in tb_async_error()

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>
drivers/thunderbolt/ctl.c