[PATCH 6.1 03/22] atm: Fix NULL pointer dereference