Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1633036

Re: [PATCH 1/1] iw_cxgb4: check return value of alloc_skb

From Doug Ledford <dledford@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/1] iw_cxgb4: check return value of alloc_skb
Date 2017-04-28 19:20 +0200
Message-ID <tBhIK-22D-11@gated-at.bofh.it> (permalink)
References <tzlGO-6uj-19@gated-at.bofh.it>
Organization Red Hat, Inc.

Show all headers | View raw


On Sun, 2017-04-23 at 17:09 +0800, Pan Bian wrote:
> Function alloc_skb() will return a NULL pointer when there is no
> enough
> memory. However, the return value of alloc_skb() is directly used
> without validation in function send_fw_pass_open_req(). This patches
> checks the return value of alloc_skb() against NULL.
> 
> Signed-off-by: Pan Bian <bianpan2016@163.com>

Thanks, applied.

-- 
Doug Ledford <dledford@redhat.com>
    GPG KeyID: B826A3330E572FDD
   
Key fingerprint = AE6B 1BDA 122B 23B4 265B  1274 B826 A333 0E57 2FDD

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH 1/1] iw_cxgb4: check return value of alloc_skb Doug Ledford <dledford@redhat.com> - 2017-04-28 19:20 +0200

csiph-web