Use IS_ERR to validate return value from get_mtd_device()