The variable "max" correctly poles the maximum supported pixel buffer size from our chip. However later the variable "size" is checked against the hard coded value 256. Our driver supports much higher then this and was therefore failing this test. changing the hardc oded value "256" to max allows our driver to pass. If however the intention was to check the driver could support at least 256 maybe the line if(size != max) could be changed to if(size < 256).