Added an out of bound check on u4_num_bufs in input argument am: aa11ab9fdb am: 50ec420228 am: 0514a1ebfb am: fa8bb9d89c am: 96228ba3b9 am: 4a6a743d40
am: 4ed04c7bb1

Change-Id: Ieb63eac7e6a2c126eddd4c263ad75d2f3d4d7949