Re: [PATCH] Missing return check against Null for return value of netdev_alloc_dev_skb()

From: Sergei Shtylyov
Date: Mon Jun 16 2014 - 09:32:34 EST


Hello.

On 06/16/2014 12:27 AM, Nick Krause wrote:

From 62b0d77a1430f74b7f5c008c5e8bec11604b33b0 Mon Sep 17 00:00:00 2001
From: Nick <xerofoify@xxxxxxxxx>
Date: Sun, 15 Jun 2014 16:16:14 -0400
Subject: [PATCHv2] Fixes return logic of function of pch_gbe_alloc_tx_buffers()
Here is the fixed patch changed return type of function to int in
order to use return -ENOMEM as with the function above it , seems to
fit , otherwise returns 0.
Report if it breaks anything related to this driver.
Signed-off-by: Nick <xerofoify@xxxxxxxxx>

You should specify your full name in the "Signed-off:" line.

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/