mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-16 18:21:27 +00:00
Fix bug when enabling target on nonzero channel.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@328 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -917,7 +917,8 @@ scsi_target_enadis(bus_chan_t *bc, int en)
|
||||
return (0);
|
||||
}
|
||||
bp = bc->bus;
|
||||
chan = (bc - bp->bchan) / sizeof (bus_chan_t);
|
||||
chan = (bc - bp->bchan);
|
||||
BUG_ON(bp == NULL || chan >= bp->h.r_nchannels);
|
||||
|
||||
memset(&info, 0, sizeof (info));
|
||||
info.i_identity = bp->h.r_identity;
|
||||
|
||||
Reference in New Issue
Block a user