/* Fixes: , AV: fixed OOM handling in fifo_open(), moved initialization there, switched to external allocation of pipe_inode_info.  */
static void wait_for_partner(struct inode *inode, unsigned int *cnt)
/* Fixes: , AV: fixed OOM handling in fifo_open(), moved initialization there, switched to external allocation of pipe_inode_info.  */
static void wait_for_partner(struct inode *inode, unsigned int *cnt)
{
	int cur = *cnt;
	while (cur == *cnt) {
		pipe_wait(inode->i_pipe);
		if (signal_pending(current))
			break;
	}
}