diff options
-rw-r--r-- | drivers/media/video/videobuf-vmalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/videobuf-vmalloc.c b/drivers/media/video/videobuf-vmalloc.c index be65a2fb3976..30ae30f99ccc 100644 --- a/drivers/media/video/videobuf-vmalloc.c +++ b/drivers/media/video/videobuf-vmalloc.c | |||
@@ -425,7 +425,7 @@ void videobuf_vmalloc_free (struct videobuf_buffer *buf) | |||
425 | So, it should free memory only if the memory were allocated for | 425 | So, it should free memory only if the memory were allocated for |
426 | read() operation. | 426 | read() operation. |
427 | */ | 427 | */ |
428 | if ((buf->memory != V4L2_MEMORY_USERPTR) || (buf->baddr == 0)) | 428 | if ((buf->memory != V4L2_MEMORY_USERPTR) || buf->baddr) |
429 | return; | 429 | return; |
430 | 430 | ||
431 | if (!mem) | 431 | if (!mem) |