Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ef7ab2357ba09e8a795018640a87e93dfa043360
Commit:     ef7ab2357ba09e8a795018640a87e93dfa043360
Parent:     a76193df7c7b60f9facb4090c5ec082e06582209
Author:     Akinobu Mita <[EMAIL PROTECTED]>
AuthorDate: Sun May 27 23:26:31 2007 +0900
Committer:  John W. Linville <[EMAIL PROTECTED]>
CommitDate: Tue May 29 11:16:35 2007 -0400

    [PATCH] softmac: alloc_ieee80211() NULL check
    
    This patch adds missing NULL check and trims a line longer than 80 columns.
    
    Cc: Johannes Berg <[EMAIL PROTECTED]>
    Cc: Joe Jezak <[EMAIL PROTECTED]>
    Cc: Daniel Drake <[EMAIL PROTECTED]>
    Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 net/ieee80211/softmac/ieee80211softmac_module.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/net/ieee80211/softmac/ieee80211softmac_module.c 
b/net/ieee80211/softmac/ieee80211softmac_module.c
index e9cdc66..c308756 100644
--- a/net/ieee80211/softmac/ieee80211softmac_module.c
+++ b/net/ieee80211/softmac/ieee80211softmac_module.c
@@ -33,7 +33,10 @@ struct net_device *alloc_ieee80211softmac(int sizeof_priv)
        struct ieee80211softmac_device *softmac;
        struct net_device *dev;
 
-       dev = alloc_ieee80211(sizeof(struct ieee80211softmac_device) + 
sizeof_priv);
+       dev = alloc_ieee80211(sizeof(*softmac) + sizeof_priv);
+       if (!dev)
+               return NULL;
+
        softmac = ieee80211_priv(dev);
        softmac->dev = dev;
        softmac->ieee = netdev_priv(dev);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to