[PATCH 5.10 095/227] atm: Fix NULL pointer dereference