[lkml]   [2017]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] isdn: avm: Handle return value of skb_dequeue()
From: Arvind Yadav <>
Date: Sun, 17 Dec 2017 01:17:23 +0530

> skb_dequeue() will return NULL for an empty list or a pointer
> to the head element.
> Signed-off-by: Arvind Yadav <>

There is no code path where this is possible.

The two call sites:

1) Explicitly add an SKB to the queue


2) Explcitily guard the call with an skb_queue_empty() check

Therefore the stated condition is not possible.

 \ /
  Last update: 2017-12-19 17:06    [W:0.101 / U:1.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site