[PATCH openEuler-5.10 07/28] jffs2: fix NULL pointer dereference in jffs2_scan_medium