On Wednesday 11 May 2011 20:59:06 Sven Eckelmann wrote:
add_bcast_packet_to_list increases the refcount for if_incoming but the
reference count is never decreased. The reference count must be
increased for all kinds of forwarded packets which have the primary
interface stored and
Marek Lindner wrote:
The broadcast flood protection should be reset to its original value
if the primary interface could not be retrieved.
Signed-off-by: Marek Lindner lindner_ma...@yahoo.de
---
send.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/send.c
Signed-off-by: Sven Eckelmann s...@narfation.org
---
bat_debugfs.c |1 +
main.h|3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/bat_debugfs.c b/bat_debugfs.c
index abaeec5..4577d3f 100644
--- a/bat_debugfs.c
+++ b/bat_debugfs.c
@@ -50,6 +50,7 @@ static void
Signed-off-by: Sven Eckelmann s...@narfation.org
---
bat_debugfs.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bat_debugfs.c b/bat_debugfs.c
index 4577d3f..e8491ee 100644
--- a/bat_debugfs.c
+++ b/bat_debugfs.c
@@ -82,7 +82,7 @@ int debug_log(struct bat_priv
Signed-off-by: Sven Eckelmann s...@narfation.org
---
bat_debugfs.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bat_debugfs.c b/bat_debugfs.c
index e8491ee..628ab18 100644
--- a/bat_debugfs.c
+++ b/bat_debugfs.c
@@ -115,7 +115,7 @@ static ssize_t log_read(struct file
The size of void is currently set by gcc to 1, but is not well defined
in general. Therefore it is more advisable to cast it to char* before
doing pointer arithmetic.
Signed-off-by: Sven Eckelmann s...@narfation.org
---
originator.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
batman-adv uses pointers which are marked as const and should not
violate that type qualifier by passing it to functions which force a
cast to the non-const version.
Signed-off-by: Sven Eckelmann s...@narfation.org
---
aggregation.c | 21 +++--
aggregation.h |5
It is not save to provide memory for an int and then cast the pointer to
it to long*. It is better to standardize the up and down gateway
bandwith representation to simple ints and only use long inside
conversation routines.
Signed-off-by: Sven Eckelmann s...@narfation.org
---
gateway_common.c |
It is not necessary to cast a void* to the pointer type when we just
store it and don't want to do pointer arithmetic before the actual
assignment.
Signed-off-by: Sven Eckelmann s...@narfation.org
---
bitarray.c |2 +-
hard-interface.c|2 +-
translation-table.c |2 +-
3
Casting from pointer like 'struct orig_node*' to 'struct orig_node *'
doesn't provide any additional functionality and can be savely removed.
Signed-off-by: Sven Eckelmann s...@narfation.org
---
unicast.c |2 +-
vis.c |2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff
Documentation/CodingStyle recommends to use the form
p = kmalloc(sizeof(*p), ...);
to calculate the size of a struct and not the version where the struct
name is spelled out to prevent bugs when the type of p changes. This
also seems appropriate for manipulation of buffers when they are
Hi,
I would like tp propose following corrections for net-next-2.6/2.6.40.
Both are bug fixes. The first one fixes the regression introduced by
batman-adv: Make bat_priv-primary_if an rcu protected pointer which
prevented that the attached net_devices could be destroyed because the
references to
Usually rcu_dereference isn't necessary in situations were the
RCU-protected data structure cannot change, but sparse and lockdep still
need a similar functionality for analysis. rcu_dereference_protected
implements the reduced version which should be used to support the
dynamic and static
13 matches
Mail list logo