3.16.7-ckt24 -stable review patch.  If anyone has any objections, please let me 
know.

---8<------------------------------------------------------------

From: David Vrabel <[email protected]>

commit 69cb85242f4ff1cbbac5a45c05223600084760e8 upstream.

When less than the requested number of queues could be created, include
the actual number in the warning (instead of the requested number).

Signed-off-by: David Vrabel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Luis Henriques <[email protected]>
---
 drivers/net/xen-netfront.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index 2fb7f5d23608..cb68b061754f 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -1824,8 +1824,8 @@ static int xennet_create_queues(struct netfront_info 
*info,
 
                ret = xennet_init_queue(queue);
                if (ret < 0) {
-                       dev_warn(&info->netdev->dev, "only created %d queues\n",
-                                num_queues);
+                       dev_warn(&info->netdev->dev,
+                                "only created %d queues\n", i);
                        num_queues = i;
                        break;
                }

Reply via email to