[PATCH openEuler-5.10 539/557] batman-adv: Check ptr for NULL before reducing its refcnt