OSDN Git Service

net: ipc_router: Validate return from skb_peek
authorChris Lew <clew@codeaurora.org>
Wed, 4 Oct 2017 22:58:16 +0000 (15:58 -0700)
committerDhoat Harpal <hdhoat@codeaurora.org>
Tue, 20 Mar 2018 12:46:10 +0000 (18:16 +0530)
commitebea2d97751223282c37ad18937f372331796278
tree8209fdcfdf908d5497190e48a3f1636edf70a373
parent8e181ea4e865a2245124116afee0d9f71ccd43aa
net: ipc_router: Validate return from skb_peek

The skb_peek and skb_peek_tail functions can return NULL if the skb
list is empty. Check the return value before using the skb.

CRs-Fixed: 2121368
Change-Id: If14320104ec37b8b7504e930ed8fd06e72d08724
Signed-off-by: Chris Lew <clew@codeaurora.org>
net/ipc_router/ipc_router_core.c
net/ipc_router/ipc_router_socket.c