NTB: correct stack usage warning in debugfs_read
authorJon Mason <jon.mason@intel.com>
Sat, 19 Jan 2013 09:02:25 +0000 (02:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Jan 2013 23:45:51 +0000 (15:45 -0800)
commitd7237e22bbcffc3237a234fdf165fde4c2b0a22d
tree6e8eedf9be954585dd4da0dea6b1e6c958d121d6
parentf766755c3057c36dc0796d2b0c633611dde6eccf
NTB: correct stack usage warning in debugfs_read

Correct gcc warning of using too much stack debugfs_read.  This is done
by kmallocing the buffer instead of using the char array on stack.
Also, shrinking the buffer to something closer to what is currently
being used.

Signed-off-by: Jon Mason <jon.mason@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ntb/ntb_transport.c