net sched actions: avoid bitwise operation on signed value in pedit
authorRoman Mashak <mrv@mojatatu.com>
Wed, 27 Jun 2018 17:33:35 +0000 (13:33 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jun 2018 13:12:03 +0000 (22:12 +0900)
commit430527415398cf7e741f5e2f11324a8df9093327
treed7cbc62cc51d27c8c85260fe7c232fcf0787c79a
parent95b0d2dc13c7e7ea51675836680732e8c16e378a
net sched actions: avoid bitwise operation on signed value in pedit

Since char can be unsigned or signed, and bitwise operators may have
implementation-dependent results when performed on signed operands,
declare 'u8 *' operand instead.

Suggested-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_pedit.c