vimc: fix close(-1)
~IPAVimc() checks if fd != 0, but it should check if fd != -1. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
503d61fc83
commit
265daf6e59
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ IPAVimc::IPAVimc()
|
||||||
|
|
||||||
IPAVimc::~IPAVimc()
|
IPAVimc::~IPAVimc()
|
||||||
{
|
{
|
||||||
if (fd_)
|
if (fd_ != -1)
|
||||||
::close(fd_);
|
::close(fd_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue