* [PATCHv2] Fixes function fw_download_code to check for Null return from dev_skb_alloc
@ 2014-06-17 21:18 Nicholas Krause
2014-06-17 21:57 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Nicholas Krause @ 2014-06-17 21:18 UTC (permalink / raw)
To: gregkh; +Cc: valentina.manea.m, ben, lisa, devel, linux-kernel
Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c
index 11e915e..e4c8224 100644
--- a/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c
+++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c
@@ -62,12 +62,14 @@ static bool fw_download_code(struct net_device *dev, u8 *code_virtual_address,
skb = dev_alloc_skb(frag_length + 4);
if (!skb){
+ rt_status = false;
+ return rt_status;
+ }
memcpy((unsigned char *)(skb->cb), &dev, sizeof(dev));
tcb_desc = (struct cb_desc *)(skb->cb + MAX_DEV_ADDR_SIZE);
tcb_desc->queue_index = TXCMD_QUEUE;
tcb_desc->bCmdOrInit = DESC_PACKET_TYPE_INIT;
tcb_desc->bLastIniPkt = bLastIniPkt;
- }
seg_ptr = skb->data;
for (i = 0; i < frag_length; i += 4) {
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCHv2] Fixes function fw_download_code to check for Null return from dev_skb_alloc
2014-06-17 21:18 [PATCHv2] Fixes function fw_download_code to check for Null return from dev_skb_alloc Nicholas Krause
@ 2014-06-17 21:57 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2014-06-17 21:57 UTC (permalink / raw)
To: Nicholas Krause; +Cc: devel, lisa, ben, valentina.manea.m, linux-kernel
Lots of things wrong here, please step back, and slow down.
Your subject, this really isn't "v2", is it?
On Tue, Jun 17, 2014 at 05:18:01PM -0400, Nicholas Krause wrote:
> Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
You aren't saying what you are doing here in the body of the patch, why
not?
> ---
> drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c
> index 11e915e..e4c8224 100644
> --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c
> +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c
> @@ -62,12 +62,14 @@ static bool fw_download_code(struct net_device *dev, u8 *code_virtual_address,
>
> skb = dev_alloc_skb(frag_length + 4);
> if (!skb){
> + rt_status = false;
> + return rt_status;
> + }
Again, this patch will not apply to the tree, you are making it against
your previous patch, which was rejected. There is no way I can take
this, right?
Please start over and try again from a "clean" kernel tree.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-17 21:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-17 21:18 [PATCHv2] Fixes function fw_download_code to check for Null return from dev_skb_alloc Nicholas Krause
2014-06-17 21:57 ` Greg KH
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.