[PATCH AUTOSEL 6.1 06/17] wifi: avoid offset calculation on NULL pointer