From: Ido Schimmel <ido...@idosch.org>
Date: Sun, 21 Jun 2020 11:29:17 +0300

> From: Ido Schimmel <ido...@mellanox.com>
> 
> The second commit cited below performed a cast of 'u32 buffsize' to
> '(u16 *)' when calling mlxsw_sp_port_headroom_8x_adjust():
> 
> mlxsw_sp_port_headroom_8x_adjust(mlxsw_sp_port, (u16 *) &buffsize);
> 
> Colin noted that this will behave differently on big endian
> architectures compared to little endian architectures.
> 
> Fix this by following Colin's suggestion and have the function accept
> and return 'u32' instead of passing the current size by reference.
> 
> Fixes: da382875c616 ("mlxsw: spectrum: Extend to support Spectrum-3 ASIC")
> Fixes: 60833d54d56c ("mlxsw: spectrum: Adjust headroom buffers for 8x ports")
> Signed-off-by: Ido Schimmel <ido...@mellanox.com>
> Reported-by: Colin Ian King <colin.k...@canonical.com>
> Suggested-by: Colin Ian King <colin.k...@canonical.com>

Applied and queued up for -stable, thanks.

Reply via email to