I ran into an issue today where my Linux box coulden't connect to my Windows 7 box for some reason. It kept complaining about " mount error(12): Cannot allocate memory Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) " and that just didn't make sense. Just to make sure I even rebooted the Linux box but the issue presited so.. no it was not the Linux box this time!
I found this article while searching for an answer to my problem and yes.. it did fix the issue!
The original writer is someone called "Alan LaMielle" and his page can be found here.