]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/irda/irnetlink.c
OMAP2xxx clock: init osc_ck, sys_ck internal lists early
[linux-2.6-omap-h63xx.git] / net / irda / irnetlink.c
index 9e1fb82e322005a3749d4213c91612eadb73d1c3..2f05ec1037ab32322838dfd2cf851e66050ceb0c 100644 (file)
@@ -101,8 +101,8 @@ static int irda_nl_get_mode(struct sk_buff *skb, struct genl_info *info)
 
        hdr = genlmsg_put(msg, info->snd_pid, info->snd_seq,
                          &irda_nl_family, 0,  IRDA_NL_CMD_GET_MODE);
-       if (IS_ERR(hdr)) {
-               ret = PTR_ERR(hdr);
+       if (hdr == NULL) {
+               ret = -EMSGSIZE;
                goto err_out;
        }