commit | 72b7876c2e3b6087c72ce030d8145ec4a7328121 | [log] [tgz] |
---|---|---|
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | Sun Apr 23 18:40:30 2017 -0300 |
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | Tue Jun 20 09:04:46 2017 -0300 |
tree | 4db4c275316d491990a6d74455752b0c5bf2f7d5 | |
parent | 8b8470fdf4ce059460ffc6dd54a350df9ac87ad3 [diff] |
[media] vb2: Fix error handling in '__vb2_buf_mem_alloc' 'call_ptr_memop' can return NULL, so we must test its return value with 'IS_ERR_OR_NULL'. Otherwise, the test 'if (mem_priv)' is meaningless. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>