Author: mmel Date: Sun Aug 18 15:37:19 2019 New Revision: 351189 URL: https://svnweb.freebsd.org/changeset/base/351189
Log: Fix bug introduced by r351184. We should check the returned handle, not the pointer to it. Noticed by: ian X-MFC with: r351184 MFC after: 1 week Modified: head/sys/dev/fdt/simple_mfd.c Modified: head/sys/dev/fdt/simple_mfd.c ============================================================================== --- head/sys/dev/fdt/simple_mfd.c Sun Aug 18 11:43:58 2019 (r351188) +++ head/sys/dev/fdt/simple_mfd.c Sun Aug 18 15:37:19 2019 (r351189) @@ -134,7 +134,7 @@ simple_mfd_syscon_get_handle(device_t dev, struct sysc sc = device_get_softc(dev); *syscon = sc->syscon; - if (syscon == NULL) + if (*syscon == NULL) return (ENODEV); return (0); } _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"