Il 02/01/2014 19:14, Nathan Whitehorn ha scritto: >> > He should do something like : >> > resp_data[i] |= dev->id & 0x3f; >> > here to avoid a dev->id > 63 from spilling into the address method field. >> > >> > Or probably should have a check for >> > if dev->id > 3 then fail > OK.
No need for that:
.max_channel = 7, /* logical unit addressing format */
.max_target = 63,
.max_lun = 31,
dev->id is thus bounded to 0..63.
Paolo
