linear_new_from_data: Fail if given an invalid rowstride

Previously this would result in a silently corrupted buffer.