]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: Fix memory leak in be_cmd_get_profile_config()
authorPetr Oros <poros@redhat.com>
Wed, 5 Sep 2018 12:37:45 +0000 (14:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Sep 2018 15:07:55 +0000 (08:07 -0700)
commitd50b992fade92ab412d9b990449d70cf672d3c11
tree61b718aae7644c4741d021a0fbd8d79f0e46f26d
parent036c7ce50c6d651655902f65dd276f7486a114f5
be2net: Fix memory leak in be_cmd_get_profile_config()

DMA allocated memory is lost in be_cmd_get_profile_config() when we
call it with non-NULL port_res parameter.

Signed-off-by: Petr Oros <poros@redhat.com>
Reviewed-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_cmds.c