]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netfront: update num_queues to real created
authorJoe Jin <joe.jin@oracle.com>
Mon, 19 Oct 2015 05:37:17 +0000 (13:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Oct 2015 14:45:39 +0000 (07:45 -0700)
commita39435d1eb88f21beb080cb0e8885788c206654a
tree87a3ab12264ee67054f19154775f8c3bf039e742
parent9817e0068db917d025e3457ebddf59b6b9638eb2
xen-netfront: update num_queues to real created

Sometimes xennet_create_queues() may failed to created all requested
queues, we need to update num_queues to real created to avoid NULL
pointer dereference.

Signed-off-by: Joe Jin <joe.jin@oracle.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: David S. Miller <davem@davemloft.net>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netfront.c