[PATCH 5.0 181/238] mfd: sm501: Fix potential NULL pointer dereference