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)
commitca88ea1247dfee094e2467a3578eaec9bdf0833a
tree87a3ab12264ee67054f19154775f8c3bf039e742
parentf6a835bb04ca34b6fd337eea0544a871ba2349b8
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