diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2014-05-27 15:14:36 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-05-27 15:34:27 (GMT) |
commit | f9503a68fb8a69fb654f79b8f06bd099c478aab2 (patch) | |
tree | 973497090eeec0ad42e8062f47cda1db0b23bb7f /mm/memcontrol.c | |
parent | 9b1ee0b2cb8bffdbb3003b1d5205f3ae0592c15a (diff) | |
download | linux-f9503a68fb8a69fb654f79b8f06bd099c478aab2.tar.xz |
ALSA: firewire-lib: Use ARRAY_SIZE() instead of sizeof() for correct loop limit
This commit fixes a big for loop count with array. The limitation of loop
count should be calcurated with the number of elements in the array, not
with the number of bytes.
Aditionally, this commit apply the same declaration as a prototype in header
for the array.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'mm/memcontrol.c')
0 files changed, 0 insertions, 0 deletions