]> err.no Git - linux-2.6/commit
tpm: Use correct data types for sizes in tpm_write() and tpm_read()
authorMichael Halcrow <mhalcrow@us.ibm.com>
Sat, 26 Jul 2008 02:45:00 +0000 (19:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 26 Jul 2008 19:00:04 +0000 (12:00 -0700)
commit0147600172b4a5d261165d1aa5ef818d84da1557
tree600b372bdde87472043d71716a8cfe638a91373b
parentec288bd37e1925f513db40871bc46115cf7fb733
tpm: Use correct data types for sizes in tpm_write() and tpm_read()

Use the correct data types for the size parameters in tpm_write() and
tpm_read(). Note that rw_verify_area() makes sure that this bug cannot
be exploited to produce a buffer overrun.

Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com>
Cc: Marcel Selhorst <tpm@selhorst.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tpm/tpm.c