Is your purpose to convert the hydroxyl group into a cyanide group? Then your method doesn't seem reasonable, because even if you are able to make the conversion -OH --> -Cl, then adding KCN will probably induce elimination instead of substitution. A much better method would be to treat your alcohol with NaCN and TMSCl (with a catalytic amount of NaI) in DMF.