Re: [PATCH 1/3] sparc: clear bitmap correctly in bit_map_init()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Akinobu Mita <akinobu.mita@xxxxxxxxx>
Date: Sun, 24 Mar 2013 17:55:04 +0900

> In bit_map_init(), it attempts to clear all bits in the bitmap by memset(),
> but if the size of bitmap is not a multiple of the sizeof(long), it can't
> clear the trailing edge of bitmap properly on big-endian architecture.
> So it should use bitmap_clear() instead of memset().
> 
> There are only two users of bit_map_init(), and both of them don't cause
> the issue described above.  But it would be better to fix it now for
> future changes.
> 
> Signed-off-by: Akinobu Mita <akinobu.mita@xxxxxxxxx>

I'd rather not spend time fixing non-bugs.

Sorry, I'm not applying this.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux