net: macb: Validate the value of base_time properly (details)
Commit
3586018d5c3da14addcd033b6da5a1a209a0992d
by kuba
net: macb: Validate the value of base_time properly
In macb_taprio_setup_replace(), the value of start_time is being compared against zero which would never be true since start_time is an unsigned value. Due to this there is a chance that an incorrect config base time value can be used for computation.
Fix by checking the value of conf->base_time directly. This issue was reported by static coverity analyzer.