RE: [patch] Staging: intel_sst: off by one bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
> This should be >= instead of > or we go passed the end of the array.
> 
> Also the arrays are declared with size MAX_NUM_STREAMS.  This is the
> only place that uses MAX_NUM_STREAMS_MFLD.  It seems like asking for
> trouble to use two variables for the same information.  I've changed
> everything to use MAX_NUM_STREAMS.
> 
> This bug isn't really harmful.  In the worst case, if you enabled
> debugging then you would see a message.
> 
> Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>
> 
Acked-by: Harsha Priya <priya.harsha@xxxxxxxxx>
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux