|
@@ -6047,8 +6047,10 @@ static int mvpp2_port_init(struct mvpp2_port *port)
|
|
|
|
|
|
/* Map physical Rx queue to port's logical Rx queue */
|
|
/* Map physical Rx queue to port's logical Rx queue */
|
|
rxq = devm_kzalloc(dev, sizeof(*rxq), GFP_KERNEL);
|
|
rxq = devm_kzalloc(dev, sizeof(*rxq), GFP_KERNEL);
|
|
- if (!rxq)
|
|
|
|
|
|
+ if (!rxq) {
|
|
|
|
+ err = -ENOMEM;
|
|
goto err_free_percpu;
|
|
goto err_free_percpu;
|
|
|
|
+ }
|
|
/* Map this Rx queue to a physical queue */
|
|
/* Map this Rx queue to a physical queue */
|
|
rxq->id = port->first_rxq + queue;
|
|
rxq->id = port->first_rxq + queue;
|
|
rxq->port = port->id;
|
|
rxq->port = port->id;
|