Skip to contentSkip to conversation

6lowpan_rtnl: fix correct return of errno value

PATCH In review Alexander Aring 2 participants 5 messages Aug 8, 2014

Subsystems (2)
lore
Share & tools
lore

Alexander Aring

author maintainer
#0 lore raw

PATCH 1/1 6lowpan_rtnl: fix correct return of errno value

---
 net/ieee802154/6lowpan_rtnl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ieee802154/6lowpan_rtnl.c +1 -1
index 0acd273..b6ec3b1 100644
@@ -238,7 +238,7 @@ lowpan_alloc_frag(struct sk_buff *skb, int size,
 			return ERR_PTR(-rc);
 		}
 	} else {
-		frag = ERR_PTR(ENOMEM);
+		frag = ERR_PTR(-ENOMEM);
 	}
 
 	return frag;
Signature · 1 line
2.0.3
author maintainer
#1 lore raw
Quoted 21 lines · Alexander Aring
---
 net/ieee802154/6lowpan_rtnl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ieee802154/6lowpan_rtnl.c +1 -1
index 0acd273..b6ec3b1 100644
@@ -238,7 +238,7 @@ lowpan_alloc_frag(struct sk_buff *skb, int size,
 			return ERR_PTR(-rc);
 		}
 	} else {
-		frag = ERR_PTR(ENOMEM);
+		frag = ERR_PTR(-ENOMEM);
 	}
 
 	return frag;
Signature · 1 line
2.0.3

Sorry, I will also add a "ieee802154: " to beginning of this commit msg.

- Alex

#2 lore raw
Quoted 18 lines · Alexander Aring
Quoted 17 lines · Alexander Aring
---
  net/ieee802154/6lowpan_rtnl.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
net/ieee802154/6lowpan_rtnl.c +1 -1
index 0acd273..b6ec3b1 100644
@@ -238,7 +238,7 @@ lowpan_alloc_frag(struct sk_buff *skb, int size,
  			return ERR_PTR(-rc);
  		}
  	} else {
-		frag = ERR_PTR(ENOMEM);
+		frag = ERR_PTR(-ENOMEM);
  	}
 
Quoted 6 lines
Quoted 4 lines
net/ieee802154/6lowpan_rtnl.c +0 -0
  	return frag;
Signature · 1 line
2.0.3

Sorry, I will also add a "ieee802154: " to beginning of this commit msg.

Also some description about patch..?

Signature · 2 lines
Regards,
Varka Bhadram.
author maintainer
#3 lore raw
Quoted 24 lines · Varka Bhadram
Quoted 6 lines · Alexander Aring
Quoted 5 lines · Alexander Aring
---
 net/ieee802154/6lowpan_rtnl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 17 lines
Quoted 15 lines
net/ieee802154/6lowpan_rtnl.c +1 -1
index 0acd273..b6ec3b1 100644
@@ -238,7 +238,7 @@ lowpan_alloc_frag(struct sk_buff *skb, int size,
 			return ERR_PTR(-rc);
 		}
 	} else {
-		frag = ERR_PTR(ENOMEM);
+		frag = ERR_PTR(-ENOMEM);
 	}
 	return frag;
Signature · 1 line
2.0.3

Sorry, I will also add a "ieee802154: " to beginning of this commit msg.

Quoted 2 lines

Also some description about patch..?

No, that's enough it's only one line. What should I say about that? I could say this was introduce by commit blabla... but it doesn't matter.

I talked to you about you should write something in your commit msg, but this was a whole driver and there stands "Add support for cc2520..." and nothing more, nothing about hw aack support (address filter), I mean what's the driver supports for these guys which wants to use this driver.

Okay, maybe they could check the hardware flags for this.

I detected it by doing some experimental things to check how we can do things better.

- Alex

#4 lore raw
Quoted 35 lines · Alexander Aring
Quoted 24 lines · Varka Bhadram
Quoted 6 lines · Alexander Aring
Quoted 5 lines · Alexander Aring
---
  net/ieee802154/6lowpan_rtnl.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 17 lines
Quoted 15 lines
net/ieee802154/6lowpan_rtnl.c +1 -1
index 0acd273..b6ec3b1 100644
@@ -238,7 +238,7 @@ lowpan_alloc_frag(struct sk_buff *skb, int size,
  			return ERR_PTR(-rc);
  		}
  	} else {
-		frag = ERR_PTR(ENOMEM);
+		frag = ERR_PTR(-ENOMEM);
  	}
  	return frag;
Signature · 1 line
2.0.3

Sorry, I will also add a "ieee802154: " to beginning of this commit msg.

Quoted 2 lines

Also some description about patch..?

No, that's enough it's only one line. What should I say about that? I could say this was introduce by commit blabla... but it doesn't matter.

I talked to you about you should write something in your commit msg, but this was a whole driver and there stands "Add support for cc2520..." and nothing more, nothing about hw aack support (address filter), I mean what's the driver supports for these guys which wants to use this driver.

Quoted 5 lines

Okay, maybe they could check the hardware flags for this.

I detected it by doing some experimental things to check how we can do things better.

I got your point . Thanks..

Signature · 2 lines
Regards,
Varka Bhadram.