rds: Fix rds message leak in rds_message_map_pages
authorPavel Emelyanov <xemul@parallels.com>
Mon, 8 Nov 2010 06:20:50 +0000 (06:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Nov 2010 20:17:09 +0000 (12:17 -0800)
commitaa58163a76a3aef33c7220931543d45d0fe43753
treec88b5f62863053a83e7c9be1b978e1e44ff70f86
parent0cffef48ebf5060f749d8b04ab0437a4ba009e77
rds: Fix rds message leak in rds_message_map_pages

The sgs allocation error path leaks the allocated message.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Andy Grover <andy.grover@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/message.c