From: Rob Jones Date: Thu, 9 Oct 2014 22:25:07 +0000 (-0700) Subject: fs/ocfs2/cluster/netdebug.c: use seq_open_private() not seq_open() X-Git-Tag: fixes-against-v3.18-rc2~137^2~146 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f32883384846e1d4aa941c60dd8adb44093359c6;p=pandora-kernel.git fs/ocfs2/cluster/netdebug.c: use seq_open_private() not seq_open() Reduce boilerplate code by using seq_open_private() instead of seq_open() Note that the code in and using sc_common_open() has been quite extensively changed. Not least because there was a latent memory leak in the code as was: if sc_common_open() failed, the previously allocated buffer was not freed. Signed-off-by: Rob Jones Cc: Joel Becker Cc: Mark Fasheh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed