[PATCH openEuler-5.10-LTS 542/559] batman-adv: Check ptr for NULL before reducing its refcnt