commit | bee1f753bfcb19660d8ad713b9dd3939630854b6 | [log] [tgz] |
---|---|---|
author | Ido Schimmel <idosch@mellanox.com> | Thu Oct 08 15:17:38 2015 +0200 |
committer | David S. Miller <davem@davemloft.net> | Sun Oct 11 05:08:09 2015 -0700 |
tree | def6c0073fa9ac734c816f17b9fb1dd37260f939 | |
parent | 4b0c2541cbf223abd38b235146e30a3d207d3bfe [diff] |
mlxsw: Fix bug in __mlxsw_item_bit_array_offset When calculating the shift needed in order to access a bit array element in a byte, we should multiply the index by the element size and not assume it is fixed at 2-bits. Fixes: 93c1edb27f9e ("mlxsw: Introduce Mellanox switch driver core") Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>