[1/2] batman-adv: fix SIF show / store uint regression

Message ID 1339337141-3938-1-git-send-email-lindner_marek@yahoo.de (mailing list archive)
State Accepted, archived
Commit 535bb4038a5a3e7b97b61b00b3d083cb57f2610c
Headers

Commit Message

Marek Lindner June 10, 2012, 2:05 p.m. UTC
  Regression was introduced with commit: 98881e49

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
---
 bat_sysfs.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
  

Comments

Sven Eckelmann June 11, 2012, 5:49 a.m. UTC | #1
On Sunday 10 June 2012 22:05:40 Marek Lindner wrote:
> Regression was introduced with commit: 98881e49
> 
> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>

Thanks for the fix. This part was in the code that I wanted to remove (but
you need in your next patch).

Acked-by: Sven Eckelmann <sven@narfation.org>
  
Marek Lindner June 11, 2012, 7:36 p.m. UTC | #2
On Monday, June 11, 2012 13:49:27 Sven Eckelmann wrote:
> On Sunday 10 June 2012 22:05:40 Marek Lindner wrote:
> > Regression was introduced with commit: 98881e49
> >
> > 
> >
> > Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
> 
> Thanks for the fix. This part was in the code that I wanted to remove (but
> you need in your next patch).
> 
> Acked-by: Sven Eckelmann <sven@narfation.org>

Applied in revision 535bb40.

Regards,
Marek
  

Patch

diff --git a/bat_sysfs.c b/bat_sysfs.c
index e0272fe..e1ba286 100644
--- a/bat_sysfs.c
+++ b/bat_sysfs.c
@@ -135,8 +135,9 @@  ssize_t batadv_store_##_name(struct kobject *kobj,			\
 	if (!hard_iface)						\
 		return 0;						\
 									\
-	length = __store_uint_attr(buff, count, _min, _max, _post_func,	\
-				   attr, &hard_iface->_name, net_dev);	\
+	length = __batadv_store_uint_attr(buff, count, _min, _max,	\
+					  _post_func, attr,		\
+					  &hard_iface->_name, net_dev);	\
 									\
 	hardif_free_ref(hard_iface);					\
 	return length;							\