From: Vladimir Botka <vbotka@gmail.com>
To: linux-bluetooth@vger.kernel.org
Cc: David Binderman <dcb314@hotmail.com>
Subject: [PATCH] fix missing call to closedir
Date: Tue, 25 Aug 2009 13:47:02 +0200 [thread overview]
Message-ID: <20090825134702.51ab0f8a@vlado.suse.cz> (raw)
>From 29e477a29519c4a232ba02b6878beeeaa6d57da6 Mon Sep 17 00:00:00 2001
From: Vladimir Botka <vlado@dolby.suse.cz>
Date: Tue, 25 Aug 2009 13:23:29 +0200
Subject: [PATCH] fix missing call to closedir
---
compat/dun.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/compat/dun.c b/compat/dun.c
index c74e5ee..7140bac 100644
--- a/compat/dun.c
+++ b/compat/dun.c
@@ -106,8 +106,10 @@ static int uses_rfcomm(char *path, char *dev)
int len = readlink(de->d_name, link, sizeof(link));
if (len > 0) {
link[len] = 0;
- if (strstr(link, dev))
+ if (strstr(link, dev)) {
+ closedir(dir);
return 1;
+ }
}
}
--
1.6.0.2
Cheers,
--
-vlado
Vladimir Botka
next reply other threads:[~2009-08-25 11:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-25 11:47 Vladimir Botka [this message]
2009-08-25 14:42 ` [PATCH] fix missing call to closedir Marcel Holtmann
-- strict thread matches above, loose matches on Subject: below --
2009-08-25 15:46 Vladimir Botka
2009-08-26 6:50 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090825134702.51ab0f8a@vlado.suse.cz \
--to=vbotka@gmail.com \
--cc=dcb314@hotmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox