diff options
author | Jan Beulich <JBeulich@suse.com> | 2012-12-20 10:31:11 +0000 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2013-02-19 15:16:52 -0500 |
commit | 9d092603cc306ee6edfe917bf9ab8beb5f32d7bc (patch) | |
tree | b3a2c673762e0c5c9cff298cf34376f887641f66 /net/wireless/reg.h | |
parent | 836dc9e3fbbab0c30aa6e664417225f5c1fb1c39 (diff) | |
download | blackbird-op-linux-9d092603cc306ee6edfe917bf9ab8beb5f32d7bc.tar.gz blackbird-op-linux-9d092603cc306ee6edfe917bf9ab8beb5f32d7bc.zip |
xen-blkback: do not leak mode property
"be->mode" is obtained from xenbus_read(), which does a kmalloc() for
the message body. The short string is never released, so do it along
with freeing "be" itself, and make sure the string isn't kept when
backend_changed() doesn't complete successfully (which made it
desirable to slightly re-structure that function, so that the error
cleanup can be done in one place).
Reported-by: Olaf Hering <olaf@aepfle.de>
CC: stable@vger.kernel.org
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'net/wireless/reg.h')
0 files changed, 0 insertions, 0 deletions