diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2010-11-05 17:01:48 +0000 |
---|---|---|
committer | Omar Ramirez Luna <omar.ramirez@ti.com> | 2011-02-04 20:11:20 -0600 |
commit | d723818e7c8f20af0a665f5b0c2eda909e069ffa (patch) | |
tree | 15fc470c5af8502dcec1c11ab8728d05953c4f9e /drivers/staging/tidspbridge | |
parent | 81ea18ec22e9526b4af81e2213747e5afc48f364 (diff) | |
download | blackbird-op-linux-d723818e7c8f20af0a665f5b0c2eda909e069ffa.tar.gz blackbird-op-linux-d723818e7c8f20af0a665f5b0c2eda909e069ffa.zip |
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: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
Diffstat (limited to 'drivers/staging/tidspbridge')
-rw-r--r-- | drivers/staging/tidspbridge/rmgr/mgr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/staging/tidspbridge/rmgr/mgr.c b/drivers/staging/tidspbridge/rmgr/mgr.c index 0ea89a1bb77c..2eab6a56ab22 100644 --- a/drivers/staging/tidspbridge/rmgr/mgr.c +++ b/drivers/staging/tidspbridge/rmgr/mgr.c @@ -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; |