Skip to content

Commit 6918d3e

Browse files
committed
Merge branch 'devel'
2 parents 21ff939 + bd4051e commit 6918d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ntb_hw_switchtec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ static int switchtec_ntb_mw_set_trans(struct ntb_dev *ntb, int pidx, int widx,
322322
if (widx >= switchtec_ntb_mw_count(ntb, pidx))
323323
return -EINVAL;
324324

325-
if (xlate_pos < 12)
325+
if (size != 0 && xlate_pos < 12)
326326
return -EINVAL;
327327

328328
if (!IS_ALIGNED(addr, BIT_ULL(xlate_pos))) {

0 commit comments

Comments
 (0)