[PATCH 5.10 432/717] watchdog: Fix potential dereferencing of null pointer