We leak at least 32bits of kernel memory to user land in tc dump, because we dont init all fields (capab ?) of the dumped structure. Use C99 initializers so that holes and non explicit fields are zeroed. Signed-off-by: Eric Dumazet <email@example.com> Signed-off-by: David S. Miller <firstname.lastname@example.org> Conflicts: net/sched/act_nat.c Signed-off-by: nobodyAtall <email@example.com>
The battery temperature sensor reports invalid readings for some time after resume. As these are much too high typically, sometimes an Android overheating shutdown is triggered. The previous workaround of ignoring N readings that seemed too high is incomplete as it would still trigger very rarely. Ignore temperature readings for 90 seconds after resume instead. This also helps keeping noise out of stats created by battery apps.