|
@@ -657,22 +657,28 @@ static int qib7322_init_send ( struct qib7322 *qib7322 ) {
|
657
|
657
|
QIB7322_SMALL_SEND_BUF_SIZE,
|
658
|
658
|
QIB7322_SMALL_SEND_BUF_START,
|
659
|
659
|
QIB7322_SMALL_SEND_BUF_USED );
|
660
|
|
- if ( ! qib7322->send_bufs_small )
|
|
660
|
+ if ( ! qib7322->send_bufs_small ) {
|
|
661
|
+ rc = -ENOMEM;
|
661
|
662
|
goto err_create_send_bufs_small;
|
|
663
|
+ }
|
662
|
664
|
qib7322->send_bufs_vl15_port0 =
|
663
|
665
|
qib7322_create_send_bufs ( qib7322, baseaddr_vl15_port0,
|
664
|
666
|
QIB7322_VL15_PORT0_SEND_BUF_SIZE,
|
665
|
667
|
QIB7322_VL15_PORT0_SEND_BUF_START,
|
666
|
668
|
QIB7322_VL15_PORT0_SEND_BUF_COUNT );
|
667
|
|
- if ( ! qib7322->send_bufs_vl15_port0 )
|
|
669
|
+ if ( ! qib7322->send_bufs_vl15_port0 ) {
|
|
670
|
+ rc = -ENOMEM;
|
668
|
671
|
goto err_create_send_bufs_vl15_port0;
|
|
672
|
+ }
|
669
|
673
|
qib7322->send_bufs_vl15_port1 =
|
670
|
674
|
qib7322_create_send_bufs ( qib7322, baseaddr_vl15_port1,
|
671
|
675
|
QIB7322_VL15_PORT1_SEND_BUF_SIZE,
|
672
|
676
|
QIB7322_VL15_PORT1_SEND_BUF_START,
|
673
|
677
|
QIB7322_VL15_PORT1_SEND_BUF_COUNT );
|
674
|
|
- if ( ! qib7322->send_bufs_vl15_port1 )
|
|
678
|
+ if ( ! qib7322->send_bufs_vl15_port1 ) {
|
|
679
|
+ rc = -ENOMEM;
|
675
|
680
|
goto err_create_send_bufs_vl15_port1;
|
|
681
|
+ }
|
676
|
682
|
|
677
|
683
|
/* Allocate space for the SendBufAvail array */
|
678
|
684
|
qib7322->sendbufavail = malloc_dma ( sizeof ( *qib7322->sendbufavail ),
|
|
@@ -1681,6 +1687,7 @@ static unsigned int qib7322_link_speed_supported ( struct qib7322 *qib7322,
|
1681
|
1687
|
default:
|
1682
|
1688
|
DBGC ( qib7322, "QIB7322 %p port %d is invalid\n",
|
1683
|
1689
|
qib7322, port );
|
|
1690
|
+ supported = 0;
|
1684
|
1691
|
break;
|
1685
|
1692
|
}
|
1686
|
1693
|
|