From: Olivier Sobrie Date: Fri, 30 Jan 2015 12:21:56 +0000 (+0100) Subject: hso: fix memory leak in hso_create_rfkill() X-Git-Tag: fixes-v4.0-rc1~150^2~91^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e6d01ff759c5f0fc831694c01c477a6c0ebf7b1;p=pandora-kernel.git hso: fix memory leak in hso_create_rfkill() When the rfkill interface was created, a buffer containing the name of the rfkill node was allocated. This buffer was never freed when the device disappears. To fix the problem, we put the name given to rfkill_alloc() in the hso_net structure. Signed-off-by: Olivier Sobrie Signed-off-by: David S. Miller --- Reading git-diff-tree failed