nfs: check for integer overflow in decode_devicenotify_args()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 12 Jan 2012 07:16:14 +0000 (10:16 +0300)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 12 Jan 2012 21:30:07 +0000 (16:30 -0500)
commit363e0df057ea8da539645fe4c3c227e3d44054cc
tree9248304c9e407720e328c8cb4001dd3abaa74758
parent13fff2f35fd21d69ee84ef6a78610420e1a42818
nfs: check for integer overflow in decode_devicenotify_args()

On 32 bit, if n is too large then "n * sizeof(*args->devs)" could
overflow and args->devs would be smaller than expected.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/callback_xdr.c