esas2r: Fix array overrun
Check the array size *before* dereferencing it with a user provided offset. Signed-off-by: NAlan Cox <alan@linux.intel.com> Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de> Reviewed-by: NTomas Henzl <thenzl@redhat.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
Showing
想要评论请 注册 或 登录