diff options
author | David Ertman <[email protected]> | 2016-09-30 01:36:21 -0700 |
---|---|---|
committer | Jeff Kirsher <[email protected]> | 2016-10-28 23:28:39 -0700 |
commit | c17ef430b9fd5f58074f5cdc0128d06a5ae92304 (patch) | |
tree | d4bd871686049f8e7fae7ac89e7355848847697e /net/switchdev/switchdev.c | |
parent | cf465fe750412335b7a3c75263bd795aecef4fef (diff) |
i40e: Fix bit logic error in failure case
Patch a036244c0686 "i40e: Fix kernel panic on enable/disable LLDP"
introduced an error in bit logic.
Originally this bit manipulation was meant to clear two bits to indicate
that DCB was not enabled or capable. An "&" was incorrectly used instead
of an "|" bit operator to combine the two bitmasks into one. This also
created a static checker error since the resultant code was a no-op.
This patch fixes the error by using the correct bit-wise operator.
Signed-off-by: Dave Ertman <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions