Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d723818e authored by Felipe Contreras's avatar Felipe Contreras Committed by Omar Ramirez Luna
Browse files

staging: tidspbridge: fix mgr_enum_node_info



The current code was always returning a non-zero status value
to userspace applications when this ioctl was called.

The error code was ENODATA, which isn't actually an error,
it's always returned by dcd_enumerate_object() when it hits the
end of list.

Signed-off-by: default avatarFelipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: default avatarOmar Ramirez Luna <omar.ramirez@ti.com>
parent 81ea18ec
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -169,6 +169,11 @@ int mgr_enum_node_info(u32 node_id, struct dsp_ndbprops *pndb_props,

		}
	}

	/* the last status is not 0, but neither an error */
	if (status > 0)
		status = 0;

	if (!status) {
		if (node_id > (node_index - 1)) {
			status = -EINVAL;