cxgb3: avoid potential memory leak.
authorDivy Le Ray <divy@chelsio.com>
Wed, 26 Nov 2008 23:35:59 +0000 (15:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 23:35:59 +0000 (15:35 -0800)
commit5256554489531f3e177e7308752d8f0681cdd5a6
tree4ce0f2fe12ef0a9654bc939bd5b015cbfc297647
parent43a944f37364e22fff4cbc1e12d227b196e47612
cxgb3: avoid potential memory leak.

Add consistency in alloc_ring() parameter checking
to avoid potential memory leaks.
alloc_ring() callers are correct fo far.

Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/sge.c