diff mbox

staging: tidspbridge: make the MGR_ENUMNODE_INFO ioctl work

Message ID AANLkTim_tRKFc84e33irZuuWmrZNApH_Y2kKXBrQ4NcJ@mail.gmail.com (mailing list archive)
State Not Applicable, archived
Delegated to:
Headers show

Commit Message

Felipe Contreras Oct. 22, 2010, 1:36 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/staging/tidspbridge/rmgr/mgr.c
b/drivers/staging/tidspbridge/rmgr/mgr.c
index 57a39b9..4ba9517 100644
--- a/drivers/staging/tidspbridge/rmgr/mgr.c
+++ b/drivers/staging/tidspbridge/rmgr/mgr.c
@@ -148,6 +148,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)) {