Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 33d82f07 authored by Maciej Żenczykowski's avatar Maciej Żenczykowski Committed by Maciej Zenczykowski
Browse files

netd bpf: fix an error discovered by the next compiler update.

flags is uint16_t, but only the low byte is initialized and used.
Before the next compiler update, clang optimizes flags to uint8_t,
and thus the kernel doesn't complain.

But in the next compiler update, clang no longer tries to optimize
flags to uint8_t, because of https://reviews.llvm.org/D73997.
Then the kernel fails to load netd.o. Because netd.o tries to read the
upper byte of flags which was never initialized.

Bug: 149839606
Test: build and load netd.o successfully.

Change-Id: Ife6e2d7d8c3738e33841989a7f1ee7401bc3c963
Merged-In: Ife6e2d7d8c3738e33841989a7f1ee7401bc3c963
parent 3c4a44c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment