diff options
author | Marek Szyprowski <[email protected]> | 2011-06-28 08:29:02 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2011-06-30 22:33:47 -0300 |
commit | 66072d4fa7cb644f1f064e290f8fddfbd8ccd478 (patch) | |
tree | 97ab6c16f04589118c720fdd314d114d4d9dae5d /net/lapb/lapb_timer.c | |
parent | afdea8bac5e80362459940e18e705d792e677a57 (diff) |
[media] media: vb2: fix allocation failure check
__vb2_queue_alloc function returns the number of successfully allocated
buffers. There is no point in checking if the returned value is negative.
If this function returns 0, videobuf2 should just return -ENOMEM to
userspace, because no driver can work without memory buffers.
Reported-by: Jonathan Corbet <[email protected]>
Signed-off-by: Marek Szyprowski <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
CC: Pawel Osciak <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions