summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libnl/libnl
diff options
context:
space:
mode:
authorSong.Li <Song.Li@windriver.com>2012-06-29 09:29:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-30 20:59:11 +0100
commit8c5bbbe9714c1646c98bdd801953b6efe099bf3f (patch)
tree3c9b5029ce3bec19fbfc46e77d5fabef09c700dd /meta/recipes-support/libnl/libnl
parent2a8265950f263138fcb33db8dc9e1017a6af233a (diff)
downloadpoky-8c5bbbe9714c1646c98bdd801953b6efe099bf3f.tar.gz
libnl: fix two parentheses bugs in lib/cache_mngr.c file
there are two parentheses bugs in libnl /lib/cache_mngr.c file. The parentheses doesn't make any sense, This will cause the variable err get a bool value, the correct value of variable err should be the return value of the function which can be any integer value. (From OE-Core rev: b8bf6cc43dd08fcc7394053b31f03d5312ed239c) Signed-off-by: Song Li <Song.Li@windriver.com> Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libnl/libnl')
-rw-r--r--meta/recipes-support/libnl/libnl/fix-lib-cache_mngr.c-two-parentheses-bugs.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-support/libnl/libnl/fix-lib-cache_mngr.c-two-parentheses-bugs.patch b/meta/recipes-support/libnl/libnl/fix-lib-cache_mngr.c-two-parentheses-bugs.patch
new file mode 100644
index 0000000000..6b8fa106ca
--- /dev/null
+++ b/meta/recipes-support/libnl/libnl/fix-lib-cache_mngr.c-two-parentheses-bugs.patch
@@ -0,0 +1,37 @@
1From 82fdf49c185fd5f3810781af9ef52aa6a52bf2df Mon Sep 17 00:00:00 2001
2From: "Song.Li" <Song.Li@windriver.com>
3Date: Thu, 28 Jun 2012 20:03:17 +0800
4Subject: [PATCH] fix lib/cache_mngr.c two parentheses bugs
5
6there are two parentheses bugs in libnl /lib/cache_mngr.c file.
7The parentheses doesn't make any sense,
8This will cause the variable err get a bool value,
9the correct value of variable err should be the return value
10of the function which can be any integer value.
11
12---
13 lib/cache_mngr.c | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16Upstream-status: Pending
17
18diff --git a/lib/cache_mngr.c b/lib/cache_mngr.c
19index dae8768..57cc1f9 100644
20--- a/lib/cache_mngr.c
21+++ b/lib/cache_mngr.c
22@@ -150,10 +150,10 @@ int nl_cache_mngr_alloc(struct nl_sock *sk, int protocol, int flags,
23 /* Required to receive async event notifications */
24 nl_socket_disable_seq_check(mngr->cm_sock);
25
26- if ((err = nl_connect(mngr->cm_sock, protocol) < 0))
27+ if ((err = nl_connect(mngr->cm_sock, protocol)) < 0)
28 goto errout;
29
30- if ((err = nl_socket_set_nonblocking(mngr->cm_sock) < 0))
31+ if ((err = nl_socket_set_nonblocking(mngr->cm_sock)) < 0)
32 goto errout;
33
34 NL_DBG(1, "Allocated cache manager %p, protocol %d, %d caches\n",
35--
361.7.9.5
37