]> git.openfabrics.org - ~emulex/infiniband.git/commit
[media] stk1160: Handle urb allocation failure condition properly
authorEzequiel Garcia <elezegarcia@gmail.com>
Mon, 20 Aug 2012 00:23:44 +0000 (21:23 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 25 Sep 2012 13:52:58 +0000 (10:52 -0300)
commit065741840b1a58e94d2304b283286b355cbbc616
treea736113945cfc85d93ac95013c7ae25ae9d8d181
parent18ad89659a345c017ab61f758f9dfedab3c8190f
[media] stk1160: Handle urb allocation failure condition properly

When an urb buffer can't be allocated, the currently allocated
buffer count must be saved so they can properly released.
Moreover, it's sufficient to call stk1160_free_isoc to have
all urb buffers released.

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/stk1160/stk1160-video.c