From: Ido Schimmel <[email protected]>
Date: Sun, 21 Jun 2020 11:29:17 +0300

> From: Ido Schimmel <[email protected]>
> 
> 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 <[email protected]>
> Reported-by: Colin Ian King <[email protected]>
> Suggested-by: Colin Ian King <[email protected]>

Applied and queued up for -stable, thanks.

Reply via email to