
<		map = READ_ONCE(ri->map);
---
>		if (!ri) {
>			err = -EINVAL;
>			break;
>		}
>		map = READ_ONCE(ri->map);
