]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ti dspbridge: avoid errors if stream id is zero
authorErnesto Ramos <ernesto@ti.com>
Wed, 28 Jul 2010 21:04:57 +0000 (16:04 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 Aug 2010 00:11:03 +0000 (17:11 -0700)
commitbe85a11c0fa8dcf588ba139c305403a461ce3254
tree85b57c2dde0e43182f8a8173a22902cde7b309db
parent659c5f41517b7ec475615b851f51dd17ff6e5df1
staging: ti dspbridge: avoid errors if stream id is zero

As 'zero' can be a perfectly good id, it can be picked up as
a NULL from userspace, avoid issues in API and user apps if stream
handle is zero.

Signed-off-by: Ernesto Ramos <ernesto@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/tidspbridge/pmgr/dspapi.c