Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1438239
| From | "Jan Beulich" <JBeulich@suse.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] xen-blkback: really don't leak mode property |
| Date | 2016-07-07 09:40 +0200 |
| Message-ID | <rSc4G-3S8-39@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Commit 9d092603cc ("xen-blkback: do not leak mode property") left one
path unfixed; correct this.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
drivers/block/xen-blkback/xenbus.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--- 4.7-rc6-xen.orig/drivers/block/xen-blkback/xenbus.c
+++ 4.7-rc6-xen/drivers/block/xen-blkback/xenbus.c
@@ -715,8 +715,11 @@ static void backend_changed(struct xenbu
/* Front end dir is a number, which is used as the handle. */
err = kstrtoul(strrchr(dev->otherend, '/') + 1, 0, &handle);
- if (err)
+ if (err) {
+ kfree(be->mode);
+ be->mode = NULL;
return;
+ }
be->major = major;
be->minor = minor;
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] xen-blkback: really don't leak mode property "Jan Beulich" <JBeulich@suse.com> - 2016-07-07 09:40 +0200
Re: [PATCH] xen-blkback: really don't leak mode property Roger Pau Monne <roger.pau@citrix.com> - 2016-07-07 11:20 +0200
Re: [PATCH] xen-blkback: really don't leak mode property Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> - 2016-07-07 17:40 +0200
csiph-web