lpfc_debugfs_dumpHBASlim_data() stack space use
Hi James S.
I noticed:
static intlpfc_debugfs_dumpHBASlim_data(struct lpfc_hba *phba, char *buf, int size)
{
int len = 0;
int i, off;
uint32_t *ptr;
char buffer[1024];Would 'char *buffer=kmalloc()' be more appropriate here?
Rob
yes - something popped up with a recent change in the compiler.
The following patch addressed this issue.
http://marc.info/?l=linux-scsi&m=130655514918715&w=2
-- james s
Quoted 17 lines · Rob Evers
Hi James S.
I noticed:
static int
lpfc_debugfs_dumpHBASlim_data(struct lpfc_hba *phba, char *buf, int size){ int len = 0; int i, off; uint32_t *ptr; char buffer[1024];Would 'char *buffer=kmalloc()' be more appropriate here?
Rob