Skip to content

Commit

Permalink
thunderbolt: Use the actual buffer in tb_async_error()
Browse files Browse the repository at this point in the history
commit eb100b8 upstream.

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

Fixes: 81a54b5 ("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>
  • Loading branch information
westeri authored and gregkh committed Sep 8, 2022
1 parent e31db37 commit 23987d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thunderbolt/ctl.c
Expand Up @@ -408,7 +408,7 @@ static void tb_ctl_rx_submit(struct ctl_pkg *pkg)

static int tb_async_error(const struct ctl_pkg *pkg)
{
const struct cfg_error_pkg *error = (const struct cfg_error_pkg *)pkg;
const struct cfg_error_pkg *error = pkg->buffer;

if (pkg->frame.eof != TB_CFG_PKG_ERROR)
return false;
Expand Down

0 comments on commit 23987d0

Please sign in to comment.