Re: lpfc_debugfs_dumpHBASlim_data() stack space use

James Smart
2011-07-13T02:26:41Z

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

On 7/12/2011 3:57 PM, Rob Evers wrote:
> 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
>