]> git.baikalelectronics.ru Git - 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 10:04:52 +0000 (12:04 +0200)
commit9da59aac94e8de7d5b02ebca2173998a54fdb1ed
tree40154fcd7eb305e09973cf7f539bb91c4d12adff
parente06a122d12a09e5077c8cba252576325440d9d61
thunderbolt: Use the actual buffer in tb_async_error()

commit 570260dfb80c132368eba35303d1b4cf5f2d6cc5 upstream.

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

Fixes: 8c988d3f3807 ("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