mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-22 04:15:02 +00:00
[SCTP]: Check for NULL arg to sctp_bucket_destroy().
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
89e1df74f8
commit
37fa6878bc
1 changed files with 1 additions and 1 deletions
|
@ -4977,7 +4977,7 @@ static struct sctp_bind_bucket *sctp_bucket_create(
|
||||||
/* Caller must hold hashbucket lock for this tb with local BH disabled */
|
/* Caller must hold hashbucket lock for this tb with local BH disabled */
|
||||||
static void sctp_bucket_destroy(struct sctp_bind_bucket *pp)
|
static void sctp_bucket_destroy(struct sctp_bind_bucket *pp)
|
||||||
{
|
{
|
||||||
if (hlist_empty(&pp->owner)) {
|
if (pp && hlist_empty(&pp->owner)) {
|
||||||
if (pp->next)
|
if (pp->next)
|
||||||
pp->next->pprev = pp->pprev;
|
pp->next->pprev = pp->pprev;
|
||||||
*(pp->pprev) = pp->next;
|
*(pp->pprev) = pp->next;
|
||||||
|
|
Loading…
Reference in a new issue