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.
Just in case that page goes away for some reason I've copied some of the information here for my own and perhaps others use.
This is a direct quote from that page so if Alan doesn't like it please contact me and I will remove it ASAP!
I’m using my Windows 7 machine as a file server in addition to it being my Media Center. I’m mounting a Samba (smb) share using CIFS from my Linux server so I can synchronize files using rsync. However, I ran into a problem after using the mounted share for a small amount of time. I found a simple solution after a bit of research.
After running rsync for a short amount of time, I discovered that I was getting memory allocation errors related to the Windows share. After unmounting, I attempted to remount the share and received the error:
Here is also a reg-file in copy-paste format that you can use that sets these values