public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: bcm: nvm.c:  Cleaning up a array that is filled incompletely
@ 2014-06-08 21:45 Rickard Strandqvist
  2014-06-08 21:45 ` Rickard Strandqvist
  0 siblings, 1 reply; 3+ messages in thread
From: Rickard Strandqvist @ 2014-06-08 21:45 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Lisa Nguyen
  Cc: Rickard Strandqvist, Tugce Sirin, Masanari Iida, Wenliang Fan,
	Rashika Kheria, Aldo Iljazi, devel, linux-kernel

Hi

I think someone missed the count sizeof type in memcpy.

I'm no expert on this code.
But I wonder if also the the next for loop wrong?
It will fill with 0XFF00000000000000 but it is
not a complete 0XFFFFFFFFFFFFFFFF you're looking for?

So something like:
memset(&Buff[sigOffset], 0xFF, MAX_RW_SIZE * sizeof(PCHAR));

Rickard Strandqvist (1):
  MY_FIL_NAMN Cleaning up a array that is filled incompletely

 drivers/staging/bcm/nvm.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
1.7.10.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-09 14:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-08 21:45 [PATCH] staging: bcm: nvm.c: Cleaning up a array that is filled incompletely Rickard Strandqvist
2014-06-08 21:45 ` Rickard Strandqvist
2014-06-09 14:09   ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox