]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (13530): Fix wrong parameter order in memset
authorAlan Cox <alan@linux.intel.com>
Thu, 26 Nov 2009 15:22:11 +0000 (12:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 27 Nov 2009 20:50:43 +0000 (18:50 -0200)
commit625e74506d68110a4c2be5ab48d2b7655b2c6d4c
tree537b22453f720c18f265ddfe7df08848f40d56cc
parent83c70d827cf0beb4f52d9bb86d30e2111bb96f13
V4L/DVB (13530): Fix wrong parameter order in memset

Edwin Török found the following:

In function ‘memset’,
inlined from ‘ir_input_init’ at drivers/media/common/ir-functions.c:67:
/home/edwin/builds/linux-2.6/arch/x86/include/asm/string_64.h:61:
warning: call to ‘__warn_memset_zero_len’ declared with attribute
warning: memset used with constant zero length parameter; this could be
due to transposed parameters
memset(ir->ir_codes, sizeof(ir->ir_codes), 0);

In actual practice the only caller I can find happens to already have cleared
the buffer before calling ir_input_init.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/ir-functions.c